Added UnlockFileEx stub.
This commit is contained in:
parent
8f073279b3
commit
e00114c414
26
files/file.c
26
files/file.c
|
@ -1960,6 +1960,32 @@ BOOL WINAPI UnlockFile( HFILE hFile, DWORD dwFileOffsetLow, DWORD dwFileOffsetHi
|
|||
}
|
||||
|
||||
|
||||
/**************************************************************************
|
||||
* 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 {
|
||||
|
|
|
@ -721,7 +721,7 @@ import ntdll.dll
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue