mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[KERNEL32] Fix MSVC build
This commit is contained in:
parent
34c39a1336
commit
0add5d0a79
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue