File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
Core/Libraries/Source/WWVegas/WWLib
GeneralsMD/Code/Libraries/Source/WWVegas/WW3D2
Generals/Code/Libraries/Source/WWVegas/WW3D2 Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 24
24
// This class temporarily loads and unloads dbghelp.dll from the desired location to prevent
25
25
// other code from potentially loading it from an undesired location.
26
26
// This helps avoid crashing on boot using recent AMD/ATI drivers, which attempt to load and use
27
- // dbghelp.dll from the game install directory but are unable to do so correctly because
27
+ // dbghelp.dll from the game install directory but are unable to do so without crashing because
28
28
// the dbghelp.dll that ships with the game is very old and the AMD/ATI code does not handle
29
29
// that correctly.
30
30
Original file line number Diff line number Diff line change @@ -314,7 +314,8 @@ bool DX8Wrapper::Init(void * hwnd, bool lite)
314
314
*/
315
315
WWDEBUG_SAY ((" Create Direct3D8\n " ));
316
316
{
317
- // TheSuperHackers @bugfix xezon 13/06/2025 Temporarily unload dbghelp.dll and prevent it from loading.
317
+ // TheSuperHackers @bugfix xezon 13/06/2025 Front load the system dbghelp.dll
318
+ // to prevent the graphics driver from potentially loading the old game dbghelp.dll.
318
319
DbgHelpGuard dbgHelpGuard;
319
320
320
321
D3DInterface = Direct3DCreate8Ptr (D3D_SDK_VERSION); // TODO: handle failure cases...
@@ -568,7 +569,8 @@ bool DX8Wrapper::Create_Device(void)
568
569
569
570
HRESULT hr;
570
571
{
571
- // TheSuperHackers @bugfix xezon 13/06/2025 Temporarily unload dbghelp.dll and prevent it from loading.
572
+ // TheSuperHackers @bugfix xezon 13/06/2025 Front load the system dbghelp.dll
573
+ // to prevent the graphics driver from potentially loading the old game dbghelp.dll.
572
574
DbgHelpGuard dbgHelpGuard;
573
575
574
576
hr=D3DInterface->CreateDevice
Original file line number Diff line number Diff line change @@ -333,7 +333,8 @@ bool DX8Wrapper::Init(void * hwnd, bool lite)
333
333
*/
334
334
WWDEBUG_SAY ((" Create Direct3D8\n " ));
335
335
{
336
- // TheSuperHackers @bugfix xezon 13/06/2025 Temporarily unload dbghelp.dll and prevent it from loading.
336
+ // TheSuperHackers @bugfix xezon 13/06/2025 Front load the system dbghelp.dll
337
+ // to prevent the graphics driver from potentially loading the old game dbghelp.dll.
337
338
DbgHelpGuard dbgHelpGuard;
338
339
339
340
D3DInterface = Direct3DCreate8Ptr (D3D_SDK_VERSION); // TODO: handle failure cases...
@@ -600,7 +601,8 @@ bool DX8Wrapper::Create_Device(void)
600
601
601
602
HRESULT hr;
602
603
{
603
- // TheSuperHackers @bugfix xezon 13/06/2025 Temporarily unload dbghelp.dll and prevent it from loading.
604
+ // TheSuperHackers @bugfix xezon 13/06/2025 Front load the system dbghelp.dll
605
+ // to prevent the graphics driver from potentially loading the old game dbghelp.dll.
604
606
DbgHelpGuard dbgHelpGuard;
605
607
606
608
hr=D3DInterface->CreateDevice
You can’t perform that action at this time.
0 commit comments