minidump integration

This commit is contained in:
Ondrej Novak 2025-05-13 12:07:29 +02:00
parent 96eaeb4851
commit b459f2010e
9 changed files with 130 additions and 21 deletions

View file

@ -2,6 +2,7 @@
#include "../getopt.h"
#include "../platform.h"
#include "../error.h"
#include "../seh.h"
#include <iostream>
#include <string>
#include <sstream>
@ -108,6 +109,10 @@ int __stdcall WinMain(HINSTANCE,HINSTANCE ,LPSTR, INT) {
argv[i][need-1] = 0;
}
GlobalFree(szArglist);
return main(argc, argv);
int r = -256;
SEH_MONITOR_BEGIN {
r = main(argc, argv);
} SEH_MONITOR_END;
return r;
}