mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-23 13:05:11 +00:00
what?
This commit is contained in:
parent
38d25bd6c2
commit
cd671b5f12
1 changed files with 4 additions and 0 deletions
|
@ -22,6 +22,10 @@
|
||||||
typedef HRESULT (*SPDA)(int);
|
typedef HRESULT (*SPDA)(int);
|
||||||
|
|
||||||
int WINAPI WinMain(HINSTANCE inst, HINSTANCE prevInst, PSTR args, int state) {
|
int WINAPI WinMain(HINSTANCE inst, HINSTANCE prevInst, PSTR args, int state) {
|
||||||
|
if (AttachConsole(ATTACH_PARENT_PROCESS)==0) {
|
||||||
|
if (GetLastError()==ERROR_ACCESS_DENIED) FreeConsole();
|
||||||
|
}
|
||||||
|
|
||||||
int argc=0;
|
int argc=0;
|
||||||
wchar_t** argw=CommandLineToArgvW(GetCommandLineW(),&argc);
|
wchar_t** argw=CommandLineToArgvW(GetCommandLineW(),&argc);
|
||||||
char** argv=new char*[argc+1];
|
char** argv=new char*[argc+1];
|
||||||
|
|
Loading…
Reference in a new issue