wined3d: Add UnregisterClass() on DLL_PROCESS_DETACH.
Rico Schüller
kgbricola at web.de
Mon May 11 14:43:54 CDT 2009
Hi,
this patch adds a call to UnregisterClass to release the associated data
from the first (and all other) HINSTANCE1 of the dll. Otherwise the dll
could crash after two more Free/Load-Library calls. This happens when it
gets HINSTANCE2 and on the third load it gets HINSTANCE1 again. Now the
dll uses the old data from the RegisterClass call from the first
LoadLibrary call, which has overwritten data.
Cheers
Rico
---
dlls/wined3d/directx.c | 2 +-
dlls/wined3d/wined3d_main.c | 9 +++++----
dlls/wined3d/wined3d_private.h | 3 +++
3 files changed, 9 insertions(+), 5 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 01b15801d8a00264c93a40a7c63cdcad61d56189.diff
Type: text/x-patch
Size: 2793 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20090511/bb1d06a4/attachment.bin>
More information about the wine-patches
mailing list