mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08:00
[KERNEL32] Fix MSVC build
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user