X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwchat.c;h=64cc16a2b5d1c1b36948343ca68eefe17e91873c;hb=980f155cbd6ed8818bbfc4f72d948e0f733f9ee4;hp=4a1b4d317ba6cdaa4d6e8acb883e7e51c70fb599;hpb=31a03160a3ed3b95ce90ac4b704fe0e2ea784425;p=xboard.git diff --git a/winboard/wchat.c b/winboard/wchat.c index 4a1b4d3..64cc16a 100644 --- a/winboard/wchat.c +++ b/winboard/wchat.c @@ -61,7 +61,7 @@ char *NextInHistory(); extern HWND ChatDialog; extern HINSTANCE hInst; -extern HWND hwndMain; +extern HWND hwndConsole; extern WindowPlacement wpChat[MAX_CHAT]; extern WindowPlacement wpConsole; @@ -372,7 +372,7 @@ void ChatPopUp(char *icsHandle) lpProc = MakeProcInstance( (FARPROC) ChatProc, hInst ); /* Note to self: dialog must have the WS_VISIBLE style set, otherwise it's not shown! */ - CreateDialog( hInst, MAKEINTRESOURCE(DLG_Chat), hwndMain, (DLGPROC)lpProc ); + CreateDialog( hInst, MAKEINTRESOURCE(DLG_Chat), hwndConsole, (DLGPROC)lpProc ); FreeProcInstance(lpProc);