projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[ADVAPI32]
[reactos.git]
/
reactos
/
dll
/
win32
/
advapi32
/
wine
/
security.c
diff --git
a/reactos/dll/win32/advapi32/wine/security.c
b/reactos/dll/win32/advapi32/wine/security.c
index
749fc69
..
5e575b0
100644
(file)
--- a/
reactos/dll/win32/advapi32/wine/security.c
+++ b/
reactos/dll/win32/advapi32/wine/security.c
@@
-3533,6
+3533,9
@@
static BOOL ParseStringSidToSid(LPCWSTR StringSid, PSID pSid, LPDWORD cBytes)
while (*StringSid == ' ')
StringSid++;
+ if (!*StringSid)
+ goto lend; /* ERROR_INVALID_SID */
+
*cBytes = ComputeStringSidSize(StringSid);
if (!pisid) /* Simply compute the size */
{