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
d46c9e2e
Commit
d46c9e2e
authored
Aug 27, 2006
by
Robert Reif
Committed by
Alexandre Julliard
Aug 28, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Fix security tests to not crash on windows.
parent
5f18bfca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
security.c
dlls/advapi32/tests/security.c
+14
-14
No files found.
dlls/advapi32/tests/security.c
View file @
d46c9e2e
...
...
@@ -102,7 +102,12 @@ static void test_str_sid(const char *str_sid)
}
}
else
trace
(
"%s couldn't be converted, returned %ld
\n
"
,
str_sid
,
GetLastError
());
{
if
(
GetLastError
()
!=
ERROR_INVALID_SID
)
trace
(
" %s: couldn't be converted, returned %ld
\n
"
,
str_sid
,
GetLastError
());
else
trace
(
" %s: couldn't be converted
\n
"
,
str_sid
);
}
}
static
void
test_sid
(
void
)
...
...
@@ -870,7 +875,7 @@ static void test_sid_str(PSID * sid)
if
(
ret
)
trace
(
" %s %s
\\
%s %d
\n
"
,
str_sid
,
domain
,
account
,
use
);
else
if
(
GetLastError
()
==
ERROR_NONE_MAPPED
)
trace
(
" %s
Couldn't m
e mapped
\n
"
,
str_sid
);
trace
(
" %s
couldn't b
e mapped
\n
"
,
str_sid
);
LocalFree
(
str_sid
);
}
}
...
...
@@ -981,17 +986,7 @@ static void test_LookupAccountSid(void)
ret
=
LookupAccountSidW
(
NULL
,
pUsersSid
,
accountW
,
&
real_acc_sizeW
,
domainW
,
&
real_dom_sizeW
,
&
use
);
ok
(
ret
,
"LookupAccountSidW() Expected TRUE, got FALSE
\n
"
);
/* try NULL account */
acc_sizeW
=
MAX_PATH
;
dom_sizeW
=
MAX_PATH
;
ret
=
LookupAccountSidW
(
NULL
,
pUsersSid
,
NULL
,
&
acc_sizeW
,
domainW
,
&
dom_sizeW
,
&
use
);
ok
(
ret
,
"LookupAccountSidW() Expected TRUE, got FALSE
\n
"
);
/* try NULL domain */
acc_sizeW
=
MAX_PATH
;
dom_sizeW
=
MAX_PATH
;
ret
=
LookupAccountSidW
(
NULL
,
pUsersSid
,
accountW
,
&
acc_sizeW
,
NULL
,
&
dom_sizeW
,
&
use
);
ok
(
ret
,
"LookupAccountSidW() Expected TRUE, got FALSE
\n
"
);
/* native windows crashes if domainW or accountW is NULL */
/* try a small account buffer */
acc_sizeW
=
1
;
...
...
@@ -1069,7 +1064,12 @@ static void test_LookupAccountSid(void)
}
}
else
trace
(
" CreateWellKnownSid(%d) failed: %ld
\n
"
,
i
,
GetLastError
());
{
if
(
GetLastError
()
!=
ERROR_INVALID_PARAMETER
)
trace
(
" CreateWellKnownSid(%d) failed: %ld
\n
"
,
i
,
GetLastError
());
else
trace
(
" %d: not supported
\n
"
,
i
);
}
}
pLsaQueryInformationPolicy
=
(
fnLsaQueryInformationPolicy
)
GetProcAddress
(
hmod
,
"LsaQueryInformationPolicy"
);
...
...
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