Resend: [Bug 2631] Trap in RegisterClassExA

Ann and Jason Edmeades us at the-edmeades.demon.co.uk
Fri Feb 11 14:12:30 CST 2005


Hiya, Was there any problem with this one - It mimics windows behaviour and
resolves a trap for an application (and yes, the behaviour even down to the
setlasterror return code matches windows, well XP at least!).

Jason

-----Original Message-----
From: Ann and Jason Edmeades [mailto:us at the-edmeades.demon.co.uk] 
Sent: 07 February 2005 22:11
To: 'wine-patches at winehq.org'
Subject: [Bug 2631] Trap in RegisterClassExA

I'm taking a break from d3d stuff waiting on Olivers patches, and thought I
would take a look through the bug database to see what I can work through.

This bug is a trap in the IKEA Kitchen Planner at startup, and caused by it
passing in invalid parms to RegisterClassExA. I double checked on Windows
and the program passes in the same invalid values but doesn't trap, and
investigation shows that Windows ensures the bytes to reserve value is
positive. I added the same check into the W version as well.

Note that the IKEA Kitchen planner then gets further and dies in a different
way, but one step at a time...

Changelog

Validate the parms into RegisterClassExA and W

Jason


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2631.fix.patch
Type: application/octet-stream
Size: 888 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050211/ed1234e5/2631.fix.obj


More information about the wine-patches mailing list