https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0add5d0a79afedbfbfe56…
commit 0add5d0a79afedbfbfe568b1ac65c51fb2dd2f86
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Mon Oct 23 17:25:19 2017 +0200
[KERNEL32] Fix MSVC build
---
dll/win32/kernel32/client/file/npipe.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dll/win32/kernel32/client/file/npipe.c
b/dll/win32/kernel32/client/file/npipe.c
index b39982e205..a142cf4537 100644
--- a/dll/win32/kernel32/client/file/npipe.c
+++ b/dll/win32/kernel32/client/file/npipe.c
@@ -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)
{