FlushInstructionCache

Eric Pouech eric.pouech at wanadoo.fr
Fri May 10 16:08:33 CDT 2002


this patch:
1/ adds a prototype for FlushInstructionCache
2/ fixes the function stub which had an incorrect prototype

A+
-------------- next part --------------
Name:          flush_instr
ChangeLog:     fixed FlushInstructionCache prototype
License:       X11
GenDate:       2002/05/10 20:30:14 UTC
ModifiedFiles: include/winbase.h win32/newfns.c
AddedFiles:    
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/include/winbase.h,v
retrieving revision 1.142
diff -u -u -r1.142 winbase.h
--- include/winbase.h	25 Apr 2002 21:34:24 -0000	1.142
+++ include/winbase.h	26 Apr 2002 17:53:06 -0000
@@ -1491,6 +1491,7 @@
 HRSRC     WINAPI FindResourceA(HMODULE,LPCSTR,LPCSTR);
 HRSRC     WINAPI FindResourceW(HMODULE,LPCWSTR,LPCWSTR);
 #define     FindResource WINELIB_NAME_AW(FindResource)
+BOOL      WINAPI FlushInstructionCache(HANDLE,LPCVOID,DWORD);
 BOOL        WINAPI FreeLibrary(HMODULE);
 #define     FreeModule(handle) FreeLibrary(handle)
 #define     FreeProcInstance(proc) /*nothing*/
Index: win32/newfns.c
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/win32/newfns.c,v
retrieving revision 1.34
diff -u -u -r1.34 newfns.c
--- win32/newfns.c	10 Mar 2002 00:18:37 -0000	1.34
+++ win32/newfns.c	27 Apr 2002 21:43:14 -0000
@@ -149,10 +149,11 @@
 /****************************************************************************
  *		FlushInstructionCache (KERNEL32.@)
  */
-BOOL WINAPI FlushInstructionCache(DWORD x,DWORD y,DWORD z) {
-        if (GetVersion() & 0x80000000) return TRUE; /* not NT, always TRUE */
-	FIXME_(debug)("(0x%08lx,0x%08lx,0x%08lx): stub\n",x,y,z);
-	return TRUE;
+BOOL WINAPI FlushInstructionCache(HANDLE hProcess, LPCVOID lpBaseAddress, DWORD dwSize)
+{
+    if (GetVersion() & 0x80000000) return TRUE; /* not NT, always TRUE */
+    FIXME_(debug)("(0x%08lx,%p,0x%08lx): stub\n",(DWORD)hProcess, lpBaseAddress, dwSize);
+    return TRUE;
 }
 
 /***********************************************************************


More information about the wine-patches mailing list