DXGL r9 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r8‎ | r9 | r10 >
Date:18:29, 20 November 2011
Author:admin
Status:new
Tags:
Comment:
Fix crash when creating DirectDraw objects
Modified paths:
  • /cfgmgr/cfgmgr.cpp (modified) (history)

Diff [purge]

Index: cfgmgr/cfgmgr.cpp
@@ -146,7 +146,7 @@
147147 {
148148 LPTSTR paths;
149149 sizeout = 0;
150 - if(!path) GetModuleFileName(NULL,path,MAX_PATH);
 150+ if(!dir) GetModuleFileName(NULL,path,MAX_PATH);
151151 else _tcsncpy(path,dir,MAX_PATH+1);
152152 GetDirFromPath(path);
153153 error = RegQueryValueEx(hKey,_T("InstallPaths"),NULL,&regmultisz,NULL,&sizeout);