mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +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 */
|
/* Import the three required functions */
|
||||||
pRevertToSelf = GetProcAddress(hAdvapi, "RevertToSelf");
|
pRevertToSelf = (BOOL (WINAPI *)(void))GetProcAddress(hAdvapi, "RevertToSelf");
|
||||||
pGetUserNameW = GetProcAddress(hAdvapi, "GetUserNameW");
|
pGetUserNameW = (BOOL (WINAPI *)(LPWSTR, LPDWORD))GetProcAddress(hAdvapi, "GetUserNameW");
|
||||||
pImpersonateNamedPipeClient = GetProcAddress(hAdvapi, "ImpersonateNamedPipeClient");
|
pImpersonateNamedPipeClient = (BOOL (WINAPI *)(HANDLE))GetProcAddress(hAdvapi, "ImpersonateNamedPipeClient");
|
||||||
/* If any couldn't be found, fail */
|
/* If any couldn't be found, fail */
|
||||||
if (pRevertToSelf == NULL || pGetUserNameW == NULL || pImpersonateNamedPipeClient == NULL)
|
if (pRevertToSelf == NULL || pGetUserNameW == NULL || pImpersonateNamedPipeClient == NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue