mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-05 04:15:05 +00:00
Merge pull request #389 from OPNA2608/msvc/more_warning_squashing
Fix more MSVC warnings
This commit is contained in:
commit
02680cb389
1 changed files with 0 additions and 13 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue