From 218faf39a2a786545fc371033cf2e843369e9537 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Sat, 11 May 2002 22:54:46 +0000 Subject: [PATCH] Fixed FlushInstructionCache prototype. --- include/winbase.h | 1 + win32/newfns.c | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/winbase.h b/include/winbase.h index ba3785e345b..e8b350c5756 100644 --- a/include/winbase.h +++ b/include/winbase.h @@ -1491,6 +1491,7 @@ BOOL WINAPI FindNextFileW(HANDLE,LPWIN32_FIND_DATAW); 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*/ diff --git a/win32/newfns.c b/win32/newfns.c index 53cc0df62d6..c3e85d4cb21 100644 --- a/win32/newfns.c +++ b/win32/newfns.c @@ -149,10 +149,11 @@ BOOL WINAPI QueryPerformanceFrequency(PLARGE_INTEGER frequency) /**************************************************************************** * 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; } /***********************************************************************