kernel32: add stub for SetFileValidData
Austin English
austinenglish at gmail.com
Sat Jul 3 02:52:54 CDT 2010
Fixes a crash in WoW Cataclysm Beta. See
http://bugs.winehq.org/show_bug.cgi?id=23477
--
-Austin
-------------- next part --------------
diff --git a/dlls/kernel32/file.c b/dlls/kernel32/file.c
index edec6b0..c6a21df 100644
--- a/dlls/kernel32/file.c
+++ b/dlls/kernel32/file.c
@@ -1001,6 +1001,16 @@ error:
}
/***********************************************************************
+ * SetFileValidData (KERNEL32.@)
+ */
+BOOL WINAPI SetFileValidData( HANDLE hFile, LONGLONG ValidDataLength )
+{
+ FIXME("stub: %p, %llu\n", hFile, ValidDataLength);
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return FALSE;
+}
+
+/***********************************************************************
* GetFileTime (KERNEL32.@)
*/
BOOL WINAPI GetFileTime( HANDLE hFile, FILETIME *lpCreationTime,
diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec
index 843e97c..a0b729d 100644
--- a/dlls/kernel32/kernel32.spec
+++ b/dlls/kernel32/kernel32.spec
@@ -1028,7 +1028,7 @@
# @ stub SetFileShortNameA
# @ stub SetFileShortNameW
@ stdcall SetFileTime(long ptr ptr ptr)
-# @ stub SetFileValidData
+@ stdcall SetFileValidData(ptr double)
# @ stub SetFirmwareEnvironmentVariableA
# @ stub SetFirmwareEnvironmentVariableW
@ stdcall SetHandleContext(long long)
More information about the wine-patches
mailing list