VC2005 Support compilable and runnable in debug mode. AJ187 confirmed these changes work in VC2003, so nothing should be broken. Thanks to Mystik EE of DDRUK for the assistance.

This commit is contained in:
Jason Felds
2006-03-12 06:32:21 +00:00
parent f820e6b39e
commit 9f46acd2d4
6 changed files with 23 additions and 14 deletions
+2 -1
View File
@@ -527,7 +527,8 @@ BOOL WINAPI DbgCheckModuleLevel(DWORD Type,DWORD Level) {
if(g_fAutoRefreshLevels) {
// re-read the registry every second. We cannot use RegNotify() to
// notice registry changes because it's not available on win9x.
static g_dwLastRefresh = 0;
/*NABIL: This needed to be a static int, not ust static*/
static int g_dwLastRefresh = 0;
DWORD dwTime = timeGetTime();
if(dwTime - g_dwLastRefresh > 1000) {
g_dwLastRefresh = dwTime;