Merge pull request #389 from OPNA2608/msvc/more_warning_squashing

Fix more MSVC warnings
This commit is contained in:
tildearrow 2022-05-07 02:28:28 -05:00 committed by GitHub
commit 02680cb389
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,16 +31,3 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prevInst, PSTR args, int state) {
}
return main(argc,argv);
}
int WINAPI wWinMain(HINSTANCE inst, HINSTANCE prevInst, PWSTR args, int state) {
int argc=0;
wchar_t** argw=CommandLineToArgvW(args,&argc);
char** argv=new char*[argc+1];
argv[argc]=NULL;
for (int i=0; i<argc; i++) {
std::string str=utf16To8(argw[i]);
argv[i]=new char[str.size()+1];
strcpy(argv[i],str.c_str());
}
return main(argc,argv);
}