SHLWAPI ole32 (delay-load of dlls)
Jon Griffiths
jon_p_griffiths at yahoo.com
Tue Jul 16 06:53:40 CDT 2002
Hi,
The following (shortened) trace from native SHLWAPI v6 shows that
StrRetToBufA is implemented using LoadLibrary/GetProcAddress to call
CoTaskMemFree, even though ole32 is imported by this version.
08073b00:CALL xpshlwapi.790: StrRetToBufA(<unknown, check
return>08073b00
08073b00:Call kernel32.LoadLibraryA(70bf2c30 "ole32.dll")
ret=70c29f2a
08073b00:Ret kernel32.LoadLibraryA() retval=40a99000 ret=70c29f2a
08073b00:Call kernel32.GetProcAddress(40a99000,70c2a412
"CoTaskMemFree") ret=70c2a027
08073b00:Call ole32.CoTaskMemFree(403979e0) ret=70bfa1e2
08073b00:Ret ole32.CoTaskMemFree() retval=00000001 ret=70bfa1e2
08073b00:RET xpshlwapi.790:
StrRetToBufA(405c6c3c,00000000,405c6d4c,00000100) retval = 00000000
ret=4001d283
If you still want to link directly in this case, ignore the patch
"SHLWAPI ole32" and apply the one below instead. This one just
removes winreg.h from shlwapi_main.c.
Cheers,
Jon
=====
"Don't wait for the seas to part, or messiahs to come;
Don't you sit around and waste this chance..." - Live
jon_p_griffiths at yahoo.com
__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SHLWAPI_ole32_replacement.diff
Type: text/x-diff
Size: 318 bytes
Desc: SHLWAPI_ole32_replacement.diff
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20020716/88746999/SHLWAPI_ole32_replacement.bin
More information about the wine-patches
mailing list