GetDlgItem16 - is id signed or not?

lawson_whitney at juno.com lawson_whitney at juno.com
Sun Nov 11 18:07:53 CST 2001


Good day!

It hasn't gotten itself fixed in the ordinary way of progress, so I have
finally gotten around to a regression in juno-1.49.  It crashes just
after getting back 0 from GetDlgItem16, so I added a little trace inside
GetDlgItem.  Now I know why it crashes, but I don't know - is id really
unsigned, or is GetControl16 incorrectly failing to extend the sign?
I guess I could try it each way and see which one does least damage, but
probably several of you know which way it is meant to go.

trace:dialog:DIALOG_CreateControls  BEGIN
trace:dialog:DIALOG_GetControl16    STATIC '' 1164, 12, 4, 232, 45, 50020000, 00000000
trace:dialog:DIALOG_GetControl16    BUTTON '&Get and Send Mail' 1162, 10, 55, 56, 28, 5003000b, 00000000
trace:dialog:DIALOG_GetControl16    BUTTON '&Just Get Mail' 1163, 70, 55, 56, 28, 5001000b, 00000000
trace:dialog:DIALOG_GetControl16    BUTTON 'Cancel' 1161, 130, 55, 56, 28, 5001000b, 00000000
trace:dialog:DIALOG_GetControl16    BUTTON '&Help' 57669, 190, 55, 56, 28, 5001000b, 00000000
trace:dialog:DIALOG_CreateControls  END
trace:dialog:GetDlgItem  GWL_ID 48c id 48a
trace:dialog:GetDlgItem  GWL_ID 48a id 48a
trace:dialog:GetDlgItem  GWL_ID 48c id 48b
trace:dialog:GetDlgItem  GWL_ID 48a id 48b
trace:dialog:GetDlgItem  GWL_ID 48b id 48b
trace:dialog:GetDlgItem  GWL_ID 48c id 489
trace:dialog:GetDlgItem  GWL_ID 48a id 489
trace:dialog:GetDlgItem  GWL_ID 48b id 489
trace:dialog:GetDlgItem  GWL_ID 489 id 489
trace:dialog:GetDlgItem  GWL_ID 48c id ffffe145
trace:dialog:GetDlgItem  GWL_ID 48a id ffffe145
trace:dialog:GetDlgItem  GWL_ID 48b id ffffe145
trace:dialog:GetDlgItem  GWL_ID 489 id ffffe145
trace:dialog:GetDlgItem  GWL_ID e145 id ffffe145
wine: Unhandled exception, starting debugger...

Regards,

Lawson

The Devil finds work for idle minds.





More information about the wine-devel mailing list