Added UnlockFileEx stub.
diff --git a/files/file.c b/files/file.c
index 5734cbb..81fb8ef 100644
--- a/files/file.c
+++ b/files/file.c
@@ -1960,6 +1960,32 @@
}
+/**************************************************************************
+ * UnlockFileEx (KERNEL32.705)
+ */
+BOOL WINAPI UnlockFileEx(
+ HFILE hFile,
+ DWORD dwReserved,
+ DWORD nNumberOfBytesToUnlockLow,
+ DWORD nNumberOfBytesToUnlockHigh,
+ LPOVERLAPPED lpOverlapped
+)
+{
+ FIXME(file, "hFile=%d,reserved=%ld,lowbytes=%ld,highbytes=%ld,overlapped=%p: stub.\n",
+ hFile, dwReserved, nNumberOfBytesToUnlockLow, nNumberOfBytesToUnlockHigh,
+ lpOverlapped);
+ if (dwReserved == 0)
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ else
+ {
+ ERR(file, "reserved == %ld: Supposed to be 0??\n", dwReserved);
+ SetLastError(ERROR_INVALID_PARAMETER);
+ }
+
+ return FALSE;
+}
+
+
#if 0
struct DOS_FILE_LOCK {
diff --git a/relay32/kernel32.spec b/relay32/kernel32.spec
index 0dab5e6..15c8e14 100644
--- a/relay32/kernel32.spec
+++ b/relay32/kernel32.spec
@@ -721,7 +721,7 @@
702 stdcall UnhandledExceptionFilter(ptr) UnhandledExceptionFilter
703 stdcall UninitializeCriticalSection(ptr) UninitializeCriticalSection
704 stdcall UnlockFile(long long long long long) UnlockFile
-705 stub UnlockFileEx
+705 stdcall UnlockFileEx(long long long long ptr) UnlockFileEx
706 stdcall UnmapViewOfFile(ptr) UnmapViewOfFile
707 stdcall UpdateResourceA(long str str long ptr long) UpdateResourceA
708 stdcall UpdateResourceW(long wstr wstr long ptr long) UpdateResourceW