[PATCH] winbase.h: Add UnlockResource prototype
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Mon Jan 30 01:05:03 CST 2017
This function is obsolete and was only used in win16. However when trying
to compile a project with winelib found this function was called.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
include/winbase.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/winbase.h b/include/winbase.h
index 6a4705c..4e52156 100644
--- a/include/winbase.h
+++ b/include/winbase.h
@@ -2600,6 +2600,7 @@ WINBASEAPI BOOL WINAPI TzSpecificLocalTimeToSystemTime(const TIME_ZONE_IN
WINBASEAPI LONG WINAPI UnhandledExceptionFilter(PEXCEPTION_POINTERS);
WINBASEAPI BOOL WINAPI UnlockFile(HANDLE,DWORD,DWORD,DWORD,DWORD);
WINBASEAPI BOOL WINAPI UnlockFileEx(HANDLE,DWORD,DWORD,DWORD,LPOVERLAPPED);
+#define UnlockResource(handle) (handle, 0)
#define UnlockSegment(handle) GlobalUnfix((HANDLE)(handle))
WINBASEAPI BOOL WINAPI UnmapViewOfFile(LPCVOID);
WINBASEAPI HRESULT WINAPI UnregisterApplicationRestart(void);
--
1.9.1
More information about the wine-patches
mailing list