-----Messaggio Originale----- Da: "Andi Jahja" <xharb...@telkom.net.id> A: "Enrico Maria Giordano" <e.m.giord...@emagsoftware.it> Cc: "xHarbour Developers Mailing List" <xharbour-developers@lists.sourceforge.net> Data invio: lunedì 7 dicembre 2009 1.07 Oggetto: Re: [xHarbour-developers] Warning in gtclip.c
> > The following code from hb_gt_w32_setClipboard() doesn't make sense, if > > I'm > > not wrong: > > > > DWORD lcid = (DWORD) GlobalLock( hglbLocale ); > > lcid = LOCALE_USER_DEFAULT; > > It translated into something by the following macros: > > #define LOCALE_USER_DEFAULT (MAKELCID(LANG_USER_DEFAULT, SORT_DEFAULT)) > #define MAKELCID(lgid, srtid) ((DWORD)((((DWORD)((WORD )(srtid))) << 16) > | \ > ((DWORD)((WORD )(lgid))))) Yes, I know. But the point is that the handle returned by GlobalLock() is overwritten causing a memory leak, or am I wrong? EMG -- EMAG Software Homepage: http://www.emagsoftware.it The EMG's ZX-Spectrum Page: http://www.emagsoftware.it/spectrum The Best of Spectrum Games: http://www.emagsoftware.it/tbosg The EMG Music page: http://www.emagsoftware.it/emgmusic ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ xHarbour-developers mailing list xHarbour-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xharbour-developers