[KERNEL32] Fix MSVC build

This commit is contained in:
Pierre Schweitzer 2017-10-23 17:25:19 +02:00
parent 34c39a1336
commit 0add5d0a79

View file

@ -45,9 +45,9 @@ NpGetUserNamep(HANDLE hNamedPipe,
}
/* Import the three required functions */
pRevertToSelf = GetProcAddress(hAdvapi, "RevertToSelf");
pGetUserNameW = GetProcAddress(hAdvapi, "GetUserNameW");
pImpersonateNamedPipeClient = GetProcAddress(hAdvapi, "ImpersonateNamedPipeClient");
pRevertToSelf = (BOOL (WINAPI *)(void))GetProcAddress(hAdvapi, "RevertToSelf");
pGetUserNameW = (BOOL (WINAPI *)(LPWSTR, LPDWORD))GetProcAddress(hAdvapi, "GetUserNameW");
pImpersonateNamedPipeClient = (BOOL (WINAPI *)(HANDLE))GetProcAddress(hAdvapi, "ImpersonateNamedPipeClient");
/* If any couldn't be found, fail */
if (pRevertToSelf == NULL || pGetUserNameW == NULL || pImpersonateNamedPipeClient == NULL)
{