Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
25102d6b
Commit
25102d6b
authored
Mar 29, 2005
by
Stefan Leichter
Committed by
Alexandre Julliard
Mar 29, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix GetFileSecurityW for not existing directories/files.
parent
61beaf48
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
security.c
dlls/advapi32/security.c
+3
-0
security.c
dlls/advapi32/tests/security.c
+3
-2
No files found.
dlls/advapi32/security.c
View file @
25102d6b
...
...
@@ -1323,6 +1323,9 @@ GetFileSecurityW( LPCWSTR lpFileName,
DWORD
iLocNow
;
SECURITY_DESCRIPTOR_RELATIVE
*
pSDRelative
;
if
(
INVALID_FILE_ATTRIBUTES
==
GetFileAttributesW
(
lpFileName
))
return
FALSE
;
FIXME
(
"(%s) : returns fake SECURITY_DESCRIPTOR
\n
"
,
debugstr_w
(
lpFileName
)
);
nNeeded
=
sizeof
(
SECURITY_DESCRIPTOR_RELATIVE
);
...
...
dlls/advapi32/tests/security.c
View file @
25102d6b
...
...
@@ -425,8 +425,9 @@ static void test_FileSecurity(void)
SetLastError
(
NO_ERROR
);
result
=
pGetFileSecurityA
(
directory
,
OWNER_SECURITY_INFORMATION
,
buffer
,
0x40
,
&
outSize
);
todo_wine
ok
(
!
result
,
"GetFileSecurityA should fail for not existing directories
\n
"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
,
"ERROR_FILE_NOT_FOUND expected
\n
"
);
ok
(
!
result
,
"GetFileSecurityA should fail for not existing directories/files
\n
"
);
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
,
"last error ERROR_FILE_NOT_FOUND expected, got %ld
\n
"
,
GetLastError
());
}
START_TEST
(
security
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment