From f6945d7bf7f2c4848d3ba71c34dd75971fcc9dba Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Thu, 2 Jun 2011 12:51:40 +0000 Subject: [PATCH] 2011-06-02 14:51 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbwin/wapi_winbase.c ! fixed to pull proper default getlasterror value --- harbour/ChangeLog | 6 +++++- harbour/contrib/hbwin/wapi_winbase.c | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index fd6ef1240a..70cbe8f773 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,7 +16,11 @@ The license applies to all entries newer than 2009-04-28. */ -2011-06-01 11:01 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) +2011-06-02 14:51 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) + * contrib/hbwin/wapi_winbase.c + ! fixed to pull proper default getlasterror value + +2011-06-02 11:01 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbwin/mapi.c ! fixed UNICODE conflict after recent LoadLibrary patch. this file has forced UNICODE off due to MS idiocy so I had diff --git a/harbour/contrib/hbwin/wapi_winbase.c b/harbour/contrib/hbwin/wapi_winbase.c index 430481a8ab..9109b6d2cf 100644 --- a/harbour/contrib/hbwin/wapi_winbase.c +++ b/harbour/contrib/hbwin/wapi_winbase.c @@ -280,7 +280,7 @@ HB_FUNC( WAPI_FORMATMESSAGE ) dwRetVal = FormatMessage( ( DWORD ) hb_parnldef( 1, FORMAT_MESSAGE_FROM_SYSTEM ) /* dwFlags */, HB_ISCHAR( 2 ) ? ( LPCVOID ) HB_PARSTR( 2, &hSource, NULL ) : hb_parptr( 2 ), - HB_ISNUM( 3 ) ? ( DWORD ) hb_parnl( 3 ) : GetLastError() /* dwMessageId */, + HB_ISNUM( 3 ) ? ( DWORD ) hb_parnl( 3 ) : hbwapi_GetLastError() /* dwMessageId */, ( DWORD ) hb_parnldef( 4, MAKELANGID( LANG_NEUTRAL, SUBLANG_DEFAULT ) ) /* dwLanguageId */, lpBuffer, ( DWORD ) nBufferLen,