]> granicus.if.org Git - nethack/commitdiff
(from Yitzhak)
authornethack.allison <nethack.allison>
Mon, 1 Apr 2002 21:27:23 +0000 (21:27 +0000)
committernethack.allison <nethack.allison>
Mon, 1 Apr 2002 21:27:23 +0000 (21:27 +0000)
fixes a little problem noticed in mhsplash.c while trying to
figure out my debugger problems.

win/win32/mhsplash.c

index dba08ac60854c0b47ba0738d4e10b14feb87514c..956a1721296b84fb6398392de7dd750d0c729a2d 100644 (file)
@@ -87,14 +87,11 @@ BOOL CALLBACK NHSplashWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
        {
        case WM_INITDIALOG:
            /* set text control font */
-               hdc = GetDC(hWnd);
                hdc = GetDC(hWnd);
                SendMessage(hWnd, WM_SETFONT,
                        (WPARAM)mswin_get_font(NHW_TEXT, ATR_NONE, hdc, FALSE), 0);
                ReleaseDC(hWnd, hdc);
 
-               ReleaseDC(hWnd, hdc);
-
                SetFocus(GetDlgItem(hWnd, IDOK));
        return FALSE;