DXGL r518 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r517‎ | r518 | r519 >
Date:12:55, 6 September 2014
Author:admin
Status:new
Tags:
Comment:
Add a trace message when the CTRL+Break hotkey fails to register, to indicate likely DDraw resource leaks.
Modified paths:
  • /ddraw/glRenderWindow.cpp (modified) (history)

Diff [purge]

Index: ddraw/glRenderWindow.cpp
@@ -109,7 +109,11 @@
110110 }
111111 #ifdef _DEBUG
112112 if(RegisterHotKey(hWnd,1,MOD_CONTROL,VK_CANCEL)) hotkeyregistered = true;
113 - else Beep(120,1000);
 113+ else
 114+ {
 115+ TRACE_STRING("Failed to register hotkey.\n");
 116+ Beep(120, 1000);
 117+ }
114118 #endif
115119 SetEvent(ReadyEvent);
116120 while((GetMessage(&Msg, NULL, 0, 0) > 0) && !dead)