File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/Files.App/ViewModels/Properties Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2
2
// Licensed under the MIT License. See the LICENSE.
3
3
4
4
using Microsoft . UI . Xaml ;
5
- using Vanara . PInvoke ;
6
5
using Windows . Storage ;
6
+ using Windows . Win32 . Foundation ;
7
7
8
8
namespace Files . App . ViewModels . Properties
9
9
{
@@ -175,7 +175,7 @@ private void LoadAccessControlEntry()
175
175
{
176
176
DisplayElements = false ;
177
177
178
- if ( error == Win32Error . ERROR_ACCESS_DENIED )
178
+ if ( error is WIN32_ERROR . ERROR_ACCESS_DENIED )
179
179
{
180
180
ErrorMessage =
181
181
"SecurityRequireReadPermissions" . GetLocalizedResource ( ) +
Original file line number Diff line number Diff line change 3
3
4
4
using CommunityToolkit . WinUI ;
5
5
using Microsoft . UI . Xaml ;
6
- using Vanara . PInvoke ;
7
6
using Windows . Storage ;
7
+ using Windows . Win32 . Foundation ;
8
8
9
9
namespace Files . App . ViewModels . Properties
10
10
{
@@ -97,7 +97,7 @@ public SecurityViewModel(PropertiesPageNavigationParameter parameter)
97
97
if ( ! AccessControlList . IsValid )
98
98
{
99
99
DisplayElements = false ;
100
- ErrorMessage = error == Win32Error . ERROR_ACCESS_DENIED
100
+ ErrorMessage = error is WIN32_ERROR . ERROR_ACCESS_DENIED
101
101
? "SecurityRequireReadPermissions" . GetLocalizedResource ( ) + "\r \n " + "SecurityClickAdvancedPermissions" . GetLocalizedResource ( )
102
102
: "SecurityUnableToDisplayPermissions" . GetLocalizedResource ( ) ;
103
103
}
You can’t perform that action at this time.
0 commit comments