Commit 2dfcb942 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

msi/tests: Prevent a crash on NT4.

parent 22c5fbdc
...@@ -130,6 +130,8 @@ static int get_user_sid(LPSTR *usersid) ...@@ -130,6 +130,8 @@ static int get_user_sid(LPSTR *usersid)
PTOKEN_USER user; PTOKEN_USER user;
BOOL rc; BOOL rc;
if (!pConvertSidToStringSidA)
return 0;
rc=OpenProcessToken(GetCurrentProcess(), TOKEN_QUERY, &token); rc=OpenProcessToken(GetCurrentProcess(), TOKEN_QUERY, &token);
if (!rc && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED) if (!rc && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment