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)
PTOKEN_USER user;
BOOL rc;
if (!pConvertSidToStringSidA)
return 0;
rc=OpenProcessToken(GetCurrentProcess(), TOKEN_QUERY, &token);
if (!rc && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
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