nanogui@linuxhacker.org
nanogui@linuxhacker.org
Hi,
In `CreateWindowEx' the CREATESTRUCT is made a parameter with the
following code :
/* note: the following assignment may have to change
* if the WINAPI decl changes from cdecl
*/
lpcs = (LPCREATESTRUCT)&dwExStyle; <<<<<<<<<<<
if(SendMessage(wp, WM_CREATE, 0, (LPARAM)(LPSTR)lpcs) == -1) {
WndDestroyWindow(wp, FALSE);
return NULL;
}
Should this be :
/* note: the following assignment may have to change
* if the WINAPI decl changes from cdecl
*/
lpcs = (LPCREATESTRUCT) dwExStyle;
if(SendMessage(wp, WM_CREATE, 0, (LPARAM)(LPSTR)lpcs) == -1) {
WndDestroyWindow(wp, FALSE);
return NULL;
}
--
Chris Johns, mailto:ccj@acm.org
nanogui@linuxhacker.org