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
21a70825
Commit
21a70825
authored
Nov 09, 2008
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Nov 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Fix tests on win9x (GetFileSecurity not implemented).
parent
8c57a6ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
security.c
dlls/advapi32/tests/security.c
+11
-8
No files found.
dlls/advapi32/tests/security.c
View file @
21a70825
...
@@ -746,6 +746,10 @@ static void test_FileSecurity(void)
...
@@ -746,6 +746,10 @@ static void test_FileSecurity(void)
retSize
=
0
;
retSize
=
0
;
SetLastError
(
NO_ERROR
);
SetLastError
(
NO_ERROR
);
rc
=
pGetFileSecurityA
(
file
,
request
,
NULL
,
0
,
&
retSize
);
rc
=
pGetFileSecurityA
(
file
,
request
,
NULL
,
0
,
&
retSize
);
if
(
!
rc
&&
(
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
))
{
win_skip
(
"GetFileSecurityA is not implemented
\n
"
);
goto
cleanup
;
}
ok
(
!
rc
,
"GetFileSecurityA "
ok
(
!
rc
,
"GetFileSecurityA "
"was expected to fail for '%s'
\n
"
,
file
);
"was expected to fail for '%s'
\n
"
,
file
);
ok
(
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
"GetFileSecurityA "
ok
(
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
"GetFileSecurityA "
...
@@ -812,19 +816,18 @@ static void test_FileSecurity(void)
...
@@ -812,19 +816,18 @@ static void test_FileSecurity(void)
HeapFree
(
GetProcessHeap
(),
0
,
sd
);
HeapFree
(
GetProcessHeap
(),
0
,
sd
);
/* Remove temporary file and directory */
DeleteFileA
(
file
);
RemoveDirectoryA
(
path
);
/* Old test */
/* Old test */
strcpy
(
wintmpdir
,
"
\\
Should not exist"
);
strcpy
(
wintmpdir
,
"
\\
Should not exist"
);
SetLastError
(
NO_ERROR
);
SetLastError
(
NO_ERROR
);
rc
=
pGetFileSecurityA
(
wintmpdir
,
OWNER_SECURITY_INFORMATION
,
NULL
,
0
,
&
sdSize
);
rc
=
pGetFileSecurityA
(
wintmpdir
,
OWNER_SECURITY_INFORMATION
,
NULL
,
0
,
&
sdSize
);
ok
(
!
rc
,
"GetFileSecurityA should fail for not existing directories/files
\n
"
);
ok
(
!
rc
,
"GetFileSecurityA should fail for not existing directories/files
\n
"
);
ok
((
GetLastError
()
==
ERROR_FILE_NOT_FOUND
)
||
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
,
(
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
),
"last error ERROR_FILE_NOT_FOUND expected, got %d
\n
"
,
GetLastError
());
"last error ERROR_FILE_NOT_FOUND / ERROR_CALL_NOT_IMPLEMENTED (98) "
"expected, got %d
\n
"
,
GetLastError
());
cleanup:
/* Remove temporary file and directory */
DeleteFileA
(
file
);
RemoveDirectoryA
(
path
);
}
}
static
void
test_AccessCheck
(
void
)
static
void
test_AccessCheck
(
void
)
...
...
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