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
70c7cd2b
Commit
70c7cd2b
authored
Aug 25, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Aug 26, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Don't test unimplemented functions.
parent
e3bd938b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
security.c
dlls/advapi32/tests/security.c
+17
-2
No files found.
dlls/advapi32/tests/security.c
View file @
70c7cd2b
...
...
@@ -101,6 +101,8 @@ static NTSTATUS (WINAPI *pNtQueryObject)(HANDLE,OBJECT_INFORMATION_CLASS,PVOID,U
static
DWORD
(
WINAPI
*
pSetEntriesInAclW
)(
ULONG
,
PEXPLICIT_ACCESSW
,
PACL
,
PACL
*
);
static
BOOL
(
WINAPI
*
pSetSecurityDescriptorControl
)(
PSECURITY_DESCRIPTOR
,
SECURITY_DESCRIPTOR_CONTROL
,
SECURITY_DESCRIPTOR_CONTROL
);
static
DWORD
(
WINAPI
*
pGetSecurityInfo
)(
HANDLE
,
SE_OBJECT_TYPE
,
SECURITY_INFORMATION
,
PSID
*
,
PSID
*
,
PACL
*
,
PACL
*
,
PSECURITY_DESCRIPTOR
*
);
static
HMODULE
hmod
;
static
int
myARGC
;
...
...
@@ -149,6 +151,7 @@ static void init(void)
pMakeSelfRelativeSD
=
(
void
*
)
GetProcAddress
(
hmod
,
"MakeSelfRelativeSD"
);
pSetEntriesInAclW
=
(
void
*
)
GetProcAddress
(
hmod
,
"SetEntriesInAclW"
);
pSetSecurityDescriptorControl
=
(
void
*
)
GetProcAddress
(
hmod
,
"SetSecurityDescriptorControl"
);
pGetSecurityInfo
=
(
void
*
)
GetProcAddress
(
hmod
,
"GetSecurityInfo"
);
myARGC
=
winetest_get_mainargs
(
&
myARGV
);
}
...
...
@@ -2493,6 +2496,12 @@ static void test_GetSecurityInfo(void)
PACL
dacl
;
DWORD
ret
;
if
(
!
pGetSecurityInfo
)
{
win_skip
(
"GetSecurityInfo is not available
\n
"
);
return
;
}
/* Create something. Files have lots of associated security info. */
obj
=
CreateFile
(
myARGV
[
0
],
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
...
...
@@ -2502,9 +2511,15 @@ static void test_GetSecurityInfo(void)
return
;
}
ret
=
GetSecurityInfo
(
obj
,
SE_FILE_OBJECT
,
ret
=
p
GetSecurityInfo
(
obj
,
SE_FILE_OBJECT
,
OWNER_SECURITY_INFORMATION
|
GROUP_SECURITY_INFORMATION
|
DACL_SECURITY_INFORMATION
,
&
owner
,
&
group
,
&
dacl
,
NULL
,
&
sd
);
if
(
ret
==
ERROR_CALL_NOT_IMPLEMENTED
)
{
win_skip
(
"GetSecurityInfo is not implemented
\n
"
);
CloseHandle
(
obj
);
return
;
}
ok
(
ret
==
ERROR_SUCCESS
,
"GetSecurityInfo returned %d
\n
"
,
ret
);
ok
(
sd
!=
NULL
,
"GetSecurityInfo
\n
"
);
ok
(
owner
!=
NULL
,
"GetSecurityInfo
\n
"
);
...
...
@@ -2516,7 +2531,7 @@ static void test_GetSecurityInfo(void)
/* If we don't ask for the security descriptor, Windows will still give us
the other stuff, leaving us no way to free it. */
ret
=
GetSecurityInfo
(
obj
,
SE_FILE_OBJECT
,
ret
=
p
GetSecurityInfo
(
obj
,
SE_FILE_OBJECT
,
OWNER_SECURITY_INFORMATION
|
GROUP_SECURITY_INFORMATION
|
DACL_SECURITY_INFORMATION
,
&
owner
,
&
group
,
&
dacl
,
NULL
,
NULL
);
ok
(
ret
==
ERROR_SUCCESS
,
"GetSecurityInfo returned %d
\n
"
,
ret
);
...
...
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