1
0
mirror of https://github.com/Wind4/vlmcsd synced 2025-09-05 20:46:53 +00:00

vlmcsd-1103-2016-11-05-Hotbird64

This commit is contained in:
Wind4
2016-11-16 12:12:36 +08:00
parent fcbbc40d60
commit b8fdaf9a6b
40 changed files with 169 additions and 28 deletions

View File

@@ -97,3 +97,25 @@ int main(int argc, CARGV argv)
return VLMCSD_EINVAL;
}
#if _MSC_VER && !defined(_DEBUG)
int __stdcall WinStartUp(void)
{
WCHAR **szArgList;
int argc;
szArgList = CommandLineToArgvW(GetCommandLineW(), &argc);
int i;
char **argv = (char**)vlmcsd_malloc(sizeof(char*)*argc);
for (i = 0; i < argc; i++)
{
int size = WideCharToMultiByte(CP_UTF8, 0, szArgList[i], -1, argv[i], 0, NULL, NULL);
argv[i] = (char*)vlmcsd_malloc(size);
WideCharToMultiByte(CP_UTF8, 0, szArgList[i], -1, argv[i], size, NULL, NULL);
}
exit(main(argc, argv));
}
#endif // _MSC_VER && !defined(_DEBUG)&& !MULTI_CALL_BINARY