https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f1689cdceaf8e2e5c7831…
commit f1689cdceaf8e2e5c7831166fd9862902270d88f
Author: Serge Gautherie <reactos-git_serge_171003(a)gautherie.fr>
AuthorDate: Thu Nov 12 01:22:46 2020 +0100
Commit: George Bișoc <george.bisoc(a)reactos.org>
CommitDate: Sat May 1 09:48:02 2021 +0200
[PSDK] UnlockResource(): Improve definition
Sync' with
https://source.winehq.org/git/wine.git/commit/a9e50da352e32d4c1bc8d0a686efa…
---
sdk/include/psdk/winbase.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sdk/include/psdk/winbase.h b/sdk/include/psdk/winbase.h
index b6bda981368..1e7071fda07 100644
--- a/sdk/include/psdk/winbase.h
+++ b/sdk/include/psdk/winbase.h
@@ -3225,7 +3225,7 @@ BOOL WINAPI
TzSpecificLocalTimeToSystemTime(LPTIME_ZONE_INFORMATION,LPSYSTEMTIME
LONG WINAPI UnhandledExceptionFilter(LPEXCEPTION_POINTERS);
BOOL WINAPI UnlockFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
BOOL WINAPI UnlockFileEx(HANDLE,DWORD,DWORD,DWORD,LPOVERLAPPED);
-#define UnlockResource(h) (h)
+#define UnlockResource(handle) ((handle), 0)
#define UnlockSegment(w) GlobalUnfix((HANDLE)(w)) /* Obsolete: Has no effect. */
BOOL WINAPI UnmapViewOfFile(LPCVOID);
#if (_WIN32_WINNT >= 0x0500)