We don't yet want the static control to call DestroyIcon.
diff --git a/controls/static.c b/controls/static.c
index 56a71367..8171202 100644
--- a/controls/static.c
+++ b/controls/static.c
@@ -218,10 +218,18 @@
break;
case WM_NCDESTROY:
- if (style == SS_ICON)
- DestroyIcon32( STATIC_SetIcon( wndPtr, 0 ) );
- else
+ if (style == SS_ICON) {
+/*
+ * FIXME
+ * DestroyIcon32( STATIC_SetIcon( wndPtr, 0 ) );
+ *
+ * We don't want to do this yet because DestroyIcon32 is broken. If the icon
+ * had already been loaded by the application the last thing we want to do is
+ * GlobalFree16 the handle.
+ */
+ } else {
lResult = DefWindowProc32A( hWnd, uMsg, wParam, lParam );
+ }
break;
case WM_PAINT: