A bug in WIN_SetWindowLong ?

Marco Bizzarri m.bizzarri at icube.it
Fri Aug 10 12:22:54 CDT 2001


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
-- 
Marco Bizzarri - Responsabile Tecnico - Icube S.r.l.
Sede:   Via Ridolfi 15 - 56124 Pisa (PI), Italia
E-mail: m.bizzarri at icube.it		WWW: www.icube.it	
Tel: 	(+39) 050 97 02 07		Fax: (+39) 050 31 36 588	





More information about the wine-users mailing list