[PATCH] shell32: do not crash "wine control.exe nonexisting"
Marcus Meissner
marcus at jet.franken.de
Wed Jun 6 03:17:32 CDT 2012
Hi,
wine control.exe joy crashed in this line, as it should be wine control.exe joy.cpl.
The list is just not setup yet as we fail...
Ciao, Marcus
---
dlls/shell32/control.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/shell32/control.c b/dlls/shell32/control.c
index cb080d5..b3eddb6 100644
--- a/dlls/shell32/control.c
+++ b/dlls/shell32/control.c
@@ -55,7 +55,7 @@ void Control_UnloadApplet(CPlApplet* applet)
}
if (applet->proc) applet->proc(applet->hWnd, CPL_EXIT, 0L, 0L);
FreeLibrary(applet->hModule);
- list_remove( &applet->entry );
+ if (applet->entry.next) list_remove( &applet->entry );
HeapFree(GetProcessHeap(), 0, applet->cmd);
HeapFree(GetProcessHeap(), 0, applet);
}
--
1.7.3.4
More information about the wine-patches
mailing list