I've already sent this one once, but it seems it never reached wine-patches... It fixes an exception that occured when i was running TEXTware BOOKcase 4.0 (i don't know how it happens, but it seems that parameters aren't valid). -- Rok Mandeljc <rok.mandeljc@gimb.org> "Hold your position! Leave doubt for the dying!" -- Tahngarth of the Weatherlight
diff -Nru Original/wine/windows/defwnd.c wine/windows/defwnd.c --- Original/wine/windows/defwnd.c 2003-09-06 12:32:57.000000000 +0200 +++ wine/windows/defwnd.c 2003-09-06 13:03:19.000000000 +0200 @@ -761,10 +761,13 @@ case WM_NCCREATE: { CREATESTRUCTA *cs = (CREATESTRUCTA *)lParam; - /* check for string, as static icons, bitmaps (SS_ICON, SS_BITMAP) - * may have child window IDs instead of window name */ - if (HIWORD(cs->lpszName)) - DEFWND_SetTextA( hwnd, cs->lpszName ); + /* check if params are valid */ + if (cs) { + /* check for string, as static icons, bitmaps (SS_ICON, SS_BITMAP) + * may have child window IDs instead of window name */ + if (HIWORD(cs->lpszName)) + DEFWND_SetTextA( hwnd, cs->lpszName ); + } /*else return FALSE;*/ result = 1; } break;
Attachment:
signature.asc
Description: To je digitalno podpisan del =?iso-8859-2?Q?sporo=E8ila?=