Made crash dialog not override AVE on debug

This commit is contained in:
Vulpovile
2022-10-03 17:19:30 -07:00
parent 6e2c135b47
commit a04c178ed4
2 changed files with 6 additions and 0 deletions

View File

@@ -47,5 +47,7 @@ IDI_ICON1 ICON "FatB3dIcon.ico"
//
// Manifest resources
//
#ifndef _DEBUG
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
1 RT_MANIFEST ".\\Blocks3D.exe.manifest"
#endif

View File

@@ -148,7 +148,9 @@ LRESULT CALLBACK G3DProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
int main(int argc, char** argv) {
#ifndef _DEBUG
try{
#endif
hresult = OleInitialize(NULL);
/* IInternetSecurityManager *pSecurityMgr;
@@ -214,10 +216,12 @@ int main(int argc, char** argv) {
Globals::mainHwnd = hwndMain;
Application app = Application(hwndMain);
app.run();
#ifndef _DEBUG
}
catch(...)
{
OnError(-1);
}
#endif
return 0;
}