KERNEL: ReplaceFile stubs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Changelog:
 -  add stub implementation for ReplaceFile so that MFC applications using CMirrorFile work

Alberto

Index: dlls/kernel/kernel32.spec
===================================================================
RCS file: /home/wine/wine/dlls/kernel/kernel32.spec,v
retrieving revision 1.87
diff -u -r1.87 kernel32.spec
--- dlls/kernel/kernel32.spec	19 Dec 2002 04:12:42 -0000	1.87
+++ dlls/kernel/kernel32.spec	26 Dec 2002 11:42:49 -0000
@@ -685,9 +685,9 @@
 @ stdcall ReinitializeCriticalSection(ptr) ReinitializeCriticalSection
 @ stdcall ReleaseMutex(long) ReleaseMutex
 @ stdcall ReleaseSemaphore(long long ptr) ReleaseSemaphore
-@ stub ReplaceFile
-@ stub ReplaceFileA
-@ stub ReplaceFileW
+@ stdcall ReplaceFile(wstr wstr wstr long ptr ptr) ReplaceFileW
+@ stdcall ReplaceFileA(str str str long ptr ptr) ReplaceFileA
+@ stdcall ReplaceFileW(wstr wstr wstr long ptr ptr) ReplaceFileW
 @ stdcall RemoveDirectoryA(str) RemoveDirectoryA
 @ stdcall RemoveDirectoryW(wstr) RemoveDirectoryW
 @ stub RequestDeviceWakeup
Index: files/file.c
===================================================================
RCS file: /home/wine/wine/files/file.c,v
retrieving revision 1.173
diff -u -r1.173 file.c
--- files/file.c	13 Dec 2002 20:30:06 -0000	1.173
+++ files/file.c	26 Dec 2002 11:42:50 -0000
@@ -3409,3 +3409,30 @@
         SetLastError(ERROR_NOT_ENOUGH_MEMORY);
     return ret;
 }
+
+/**************************************************************************
+ *           ReplaceFile, ReplaceFileW   (KERNEL32.@)
+ */
+BOOL WINAPI ReplaceFileW(LPCWSTR lpReplacedFileName,LPCWSTR lpReplacementFileName,
+                         LPCWSTR lpBackupFileName, DWORD dwReplaceFlags,
+                         LPVOID lpExclude, LPVOID lpReserved)
+{
+    FIXME("(%s,%s,%s,%08lx,%p,%p) stub\n",debugstr_w(lpReplacedFileName),debugstr_w(lpReplacementFileName),
+                                          debugstr_w(lpBackupFileName),dwReplaceFlags,lpExclude,lpReserved);
+    SetLastError(ERROR_UNABLE_TO_MOVE_REPLACEMENT);
+    return FALSE;
+}
+
+/**************************************************************************
+ *           ReplaceFileA (KERNEL32.@)
+ */
+BOOL WINAPI ReplaceFileA(LPCSTR lpReplacedFileName,LPCSTR lpReplacementFileName,
+                         LPCSTR lpBackupFileName, DWORD dwReplaceFlags,
+                         LPVOID lpExclude, LPVOID lpReserved)
+{
+    FIXME("(%s,%s,%s,%08lx,%p,%p) stub\n",lpReplacedFileName,lpReplacementFileName,
+                                          lpBackupFileName,dwReplaceFlags,lpExclude,lpReserved);
+    SetLastError(ERROR_UNABLE_TO_MOVE_REPLACEMENT);
+    return FALSE;
+}
+   




[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux