From 00110273cc28835d0b7ac79269ddbc60989ba39d Mon Sep 17 00:00:00 2001 From: Danny Smith Date: Sat, 18 Jun 2005 07:36:02 +0000 Subject: [PATCH] * include/winbase.h (GolbalDiscard): Define as macro. Thanks to: David Golub --- winsup/w32api/ChangeLog | 5 +++++ winsup/w32api/include/winbase.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index 99df2c99f..bba775318 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,3 +1,8 @@ +2005-06-18 Danny Smith + + * include/winbase.h (GolbalDiscard): Define as macro. + Thanks to: David Golub + 2005-05-13 Corinna Vinschen * include/winnetwk.h (WNetGetResourceParentA): Add missing declaration. diff --git a/winsup/w32api/include/winbase.h b/winsup/w32api/include/winbase.h index 1963d444b..53f739dc1 100644 --- a/winsup/w32api/include/winbase.h +++ b/winsup/w32api/include/winbase.h @@ -1534,7 +1534,7 @@ WINBASEAPI ATOM WINAPI GlobalAddAtomW( LPCWSTR); WINBASEAPI HGLOBAL WINAPI GlobalAlloc(UINT,DWORD); WINBASEAPI SIZE_T WINAPI GlobalCompact(DWORD); /* Obsolete: Has no effect. */ WINBASEAPI ATOM WINAPI GlobalDeleteAtom(ATOM); -WINBASEAPI HGLOBAL GlobalDiscard(HGLOBAL); +#define GlobalDiscard(hMem) GlobalReAlloc((hMem), 0, GMEM_MOVEABLE) WINBASEAPI ATOM WINAPI GlobalFindAtomA(LPCSTR); WINBASEAPI ATOM WINAPI GlobalFindAtomW(LPCWSTR); WINBASEAPI VOID WINAPI GlobalFix(HGLOBAL); /* Obsolete: Has no effect. */ -- 2.43.5