Displaying 1 result from an estimated 1 matches for "win_setwindowlong".
2001 Aug 10
1
A bug in WIN_SetWindowLong ?
Hi all.
While debugging some program, I discovered what looks like a bug. Please 
be patient if I'm wrong.
In the WIN_SetWindowLong function, in order to get the address of 
wExtra, there is:
         ptr = (LONG *)(((char *)wndPtr->wExtra) + offset);
but this takes the *CONTENT* of wndPtr->wExtra.
The correct code should be
         ptr = (LONG *)(((char *)&wndPtr->wExtra) + offset);
Am I wrong ?
Bye
Marco...