https://git.reactos.org/?p=reactos.git;a=commitdiff;h=10ecbaddd097379d5e5d4…
commit 10ecbaddd097379d5e5d42e7733585b4689a290f
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Sun Apr 7 18:26:26 2019 +0200
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Sun Apr 7 18:32:29 2019 +0200
[ADVAPI32] Send correct type to ElfrChangeNotify()
This fixes the following compiler error:
../dll/win32/advapi32/service/eventlog.c:658:59: error: passing argument 3 of
'ElfrChangeNotify' makes integer from pointer without a cast
[-Werror=int-conversion]
dll/win32/advapi32/eventlogrpc_c.h:391:20: note: expected 'ULONG {aka long
unsigned int}' but argument is of type 'HANDLE {aka void *}'
---
dll/win32/advapi32/service/eventlog.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dll/win32/advapi32/service/eventlog.c
b/dll/win32/advapi32/service/eventlog.c
index 9a4617a5ab..028e5d234c 100644
--- a/dll/win32/advapi32/service/eventlog.c
+++ b/dll/win32/advapi32/service/eventlog.c
@@ -655,7 +655,7 @@ ElfChangeNotify(IN HANDLE hEventLog,
RpcTryExcept
{
- Status = ElfrChangeNotify(hEventLog, RpcClientId, (DWORD)hEvent);
+ Status = ElfrChangeNotify(hEventLog, RpcClientId, HandleToUlong(hEvent));
}
RpcExcept(EXCEPTION_EXECUTE_HANDLER)
{