[PATCH] kdecore crashes LoadLibrary calls

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Fri Mar 27 16:20:10 CET 2009


Ralf Habacker schrieb:
> Patrick Spendrin schrieb:
>> Hi,
>>
>> I have a small patch here which fixes a problem I recently got aware of:
>> if you try to make a regsvr32 kdecore.dll it will fail saying that
>> LoadLibrary was not achieved (simply try it). The correct error message
>> would have been a missing entrypoint for DllRegisterServer though.
>> After searching for quite a while I found the problem:
>> When you load kdecore linked to an executable, the image will be located
>> at the address 0x0040000. When you load kdecore directly via regsvr32,
>> the image will have the address 0x10000000 (0x1 0x0) instead.
>>   
> What is the use case to run regsvr32 on kdecore.dll ?
> 
imho this doesn't matter - the problem remains the same: You can't
assume that kdecore is loaded at 0x0040000.
For me the patch looks correct.


Christian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 258 bytes
Desc: OpenPGP digital signature
Url : http://mail.kde.org/pipermail/kde-windows/attachments/20090327/afb73c4d/attachment.sig 


More information about the Kde-windows mailing list