X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwchat.c;h=64cc16a2b5d1c1b36948343ca68eefe17e91873c;hb=b0c4bb81c045add757b010dc8319da38bad1d510;hp=4a1b4d317ba6cdaa4d6e8acb883e7e51c70fb599;hpb=74c6f0bfb6476b2ba21f90d9e5d34130b26825ef;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);