DXGL r736 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r735‎ | r736 | r737 >
Date:06:41, 27 August 2017
Author:admin
Status:new
Tags:
Comment:
Fix a build failure.
Modified paths:
  • /dxglcfg/dxglcfg.c (modified) (history)
  • /dxglcfg2/dxglcfg2.c (modified) (history)

Diff [purge]

Index: dxglcfg/dxglcfg.c
@@ -89,6 +89,7 @@
9090 SHELLEXECUTEINFO shex;
9191 DWORD exitcode;
9292 app_ini_options inioptions;
 93+ HMODULE hmod;
9394 if (copyfile)
9495 {
9596 DWORD sizeout = (MAX_PATH + 1) * sizeof(TCHAR);
@@ -166,7 +167,7 @@
167168 }
168169 }
169170 }
170 - HMODULE hmod = LoadLibrary(destpath);
 171+ hmod = LoadLibrary(destpath);
171172 if(hmod)
172173 {
173174 if(GetProcAddress(hmod,"IsDXGLDDraw") || force) old_dxgl = TRUE;
Index: dxglcfg2/dxglcfg2.c
@@ -137,6 +137,7 @@
138138 SHELLEXECUTEINFO shex;
139139 DWORD exitcode;
140140 app_ini_options inioptions;
 141+ HMODULE hmod;
141142 if (copyfile)
142143 {
143144 DWORD sizeout = (MAX_PATH + 1) * sizeof(TCHAR);
@@ -214,7 +215,7 @@
215216 }
216217 }
217218 }
218 - HMODULE hmod = LoadLibrary(destpath);
 219+ hmod = LoadLibrary(destpath);
219220 if(hmod)
220221 {
221222 if(GetProcAddress(hmod,"IsDXGLDDraw") || force) old_dxgl = TRUE;