Hello all.
According to MSDN all classes in Win32 are local.
My experiments under Win2000 show that user32 always turns off CS_GLOBALCLASS (actually even "system" classes doesn't have it set) and does fix hInstance to the module handle.
The attached patch tries to do the same in Wine.
Comments, suggestions?
Dmitry.
ok, played around with both patches, both refuse to start the application with errors in invalid class names. Changed my own source to rename the "button" class to my own custom name ("ifbutton") and it starts fine. (so the original class.c works). Had a whole lot of other errors but i'll get to them later. I'm reading up on how to debug wine at the moment (i'm a new user) so hopefully i'll get some more usefull info to you later.