projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
34c39a1
)
[KERNEL32] Fix MSVC build
author
Pierre Schweitzer
<pierre@reactos.org>
Mon, 23 Oct 2017 15:25:19 +0000
(17:25 +0200)
committer
Pierre Schweitzer
<pierre@reactos.org>
Mon, 23 Oct 2017 15:25:19 +0000
(17:25 +0200)
dll/win32/kernel32/client/file/npipe.c
patch
|
blob
|
history
diff --git
a/dll/win32/kernel32/client/file/npipe.c
b/dll/win32/kernel32/client/file/npipe.c
index
b39982e
..
a142cf4
100644
(file)
--- 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 */
}
/* 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)
{
/* If any couldn't be found, fail */
if (pRevertToSelf == NULL || pGetUserNameW == NULL || pImpersonateNamedPipeClient == NULL)
{