Make WinHelp use SendMessageA
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Wed Apr 10 16:46:09 CDT 2002
Changelog
windows/winhelp: WinHelpA
Use SendMessageA and 32 bit constructs
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Free Software: If you contribute nothing, expect nothing
--
Index: wine/windows/winhelp.c
===================================================================
RCS file: /home/wine/wine/windows/winhelp.c,v
retrieving revision 1.22
diff -u -r1.22 winhelp.c
--- wine/windows/winhelp.c 10 Mar 2002 00:18:37 -0000 1.22
+++ wine/windows/winhelp.c 10 Apr 2002 21:42:39 -0000
@@ -79,7 +79,7 @@
static WORD WM_WINHELP = 0;
HWND hDest;
LPWINHELP lpwh;
- HGLOBAL16 hwh;
+ BOOL retv;
int size,dsize,nlen;
@@ -136,8 +136,7 @@
else
nlen = 0;
size = sizeof(WINHELP) + nlen + dsize;
- hwh = GlobalAlloc16(0,size);
- lpwh = GlobalLock16(hwh);
+ lpwh = HeapAlloc( GetProcessHeap(), 0, size);
lpwh->size = size;
lpwh->command = wCommand;
lpwh->data = dwData;
@@ -151,8 +150,9 @@
lpwh->ofsData = sizeof(WINHELP)+nlen;
} else
lpwh->ofsData = 0;
- GlobalUnlock16(hwh);
- return SendMessage16(hDest,WM_WINHELP,hWnd,hwh);
+ retv = SendMessageA(hDest,WM_WINHELP,hWnd,(LPARAM)lpwh);
+ HeapFree(GetProcessHeap(), 0, lpwh);
+ return retv;
}
More information about the wine-patches
mailing list