From 79673e91bb28cd66e50f01817a428f0f96e1d0dd Mon Sep 17 00:00:00 2001 From: Paul McNett Date: Thu, 3 Apr 2003 18:02:19 +0000 Subject: [PATCH] Stubs for BeginUpdateResourceA(), BeginUpdateResourceW(), EndUpdateResourceA(), and EndUpdateResourceW(). --- dlls/kernel/kernel32.spec | 8 ++++---- win32/kernel32.c | 42 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 4 deletions(-) diff --git a/dlls/kernel/kernel32.spec b/dlls/kernel/kernel32.spec index e6d133b22e5..1a08a3302c4 100644 --- a/dlls/kernel/kernel32.spec +++ b/dlls/kernel/kernel32.spec @@ -143,8 +143,8 @@ @ stdcall BackupSeek(ptr long long ptr ptr ptr) @ stdcall BackupWrite(ptr ptr long ptr long long ptr) @ stdcall Beep(long long) -@ stub BeginUpdateResourceA -@ stub BeginUpdateResourceW +@ stdcall BeginUpdateResourceA(str long) +@ stdcall BeginUpdateResourceW(wstr long) @ stdcall BuildCommDCBA(str ptr) @ stdcall BuildCommDCBAndTimeoutsA(str ptr ptr) @ stdcall BuildCommDCBAndTimeoutsW(wstr ptr ptr) @@ -231,8 +231,8 @@ @ stdcall DisconnectNamedPipe(long) @ stdcall DosDateTimeToFileTime(long long ptr) @ stdcall DuplicateHandle(long long long ptr long long long) -@ stub EndUpdateResourceA -@ stub EndUpdateResourceW +@ stdcall EndUpdateResourceA(long long) +@ stdcall EndUpdateResourceW(long long) @ stdcall EnterCriticalSection(ptr) ntdll.RtlEnterCriticalSection @ stdcall EnumCalendarInfoA(ptr long long long) @ stub EnumCalendarInfoW diff --git a/win32/kernel32.c b/win32/kernel32.c index c12665903af..64788194942 100644 --- a/win32/kernel32.c +++ b/win32/kernel32.c @@ -35,6 +35,48 @@ WINE_DEFAULT_DEBUG_CHANNEL(win32); +/*********************************************************************** + * BeginUpdateResourceA (KERNEL32.@) + */ +HANDLE WINAPI BeginUpdateResourceA( LPCSTR pFileName, BOOL bDeleteExistingResources ) +{ + FIXME("(%s,%d): stub\n",debugstr_a(pFileName),bDeleteExistingResources); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return 0; +} + +/*********************************************************************** + * BeginUpdateResourceW (KERNEL32.@) + */ +HANDLE WINAPI BeginUpdateResourceW( LPCWSTR pFileName, BOOL bDeleteExistingResources ) +{ + + FIXME("(%s,%d): stub\n",debugstr_w(pFileName),bDeleteExistingResources); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return 0; +} + +/*********************************************************************** + * EndUpdateResourceA (KERNEL32.@) + */ +BOOL WINAPI EndUpdateResourceA( HANDLE hUpdate, BOOL fDiscard ) +{ + + FIXME("(%p,%d): stub\n",hUpdate, fDiscard); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return FALSE; +} + +/*********************************************************************** + * EndUpdateResourceW (KERNEL32.@) + */ +BOOL WINAPI EndUpdateResourceW( HANDLE hUpdate, BOOL fDiscard ) +{ + FIXME("(%p,%d): stub\n",hUpdate, fDiscard); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return FALSE; +} + /*********************************************************************** * UpdateResourceA (KERNEL32.@) */