Skip to content

Commit 2db9f12

Browse files
committed
nit: formatting conditional to use braces
1 parent 3543c67 commit 2db9f12

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Generals/Code/Main/WinMain.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,9 @@ Int APIENTRY WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
826826
#endif
827827
// register windows class and create application window
828828
if(!TheGlobalData->m_headless && initializeAppWindows(hInstance, nCmdShow, TheGlobalData->m_windowed) == false)
829+
{
829830
return exitcode;
831+
}
830832

831833
// save our application instance for future use
832834
ApplicationHInstance = hInstance;

GeneralsMD/Code/Main/WinMain.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,9 @@ Int APIENTRY WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
873873

874874
// register windows class and create application window
875875
if(!TheGlobalData->m_headless && initializeAppWindows(hInstance, nCmdShow, TheGlobalData->m_windowed) == false)
876+
{
876877
return exitcode;
878+
}
877879

878880
// save our application instance for future use
879881
ApplicationHInstance = hInstance;

0 commit comments

Comments
 (0)