src/main/win32/SDL_main.c
changeset 505 6b34c9dcf74c
parent 504 8c4a35e3c507
child 545 8406511f850e
equal deleted inserted replaced
504:8c4a35e3c507 505:6b34c9dcf74c
   289 #endif /* !NO_STDIO_REDIRECT */
   289 #endif /* !NO_STDIO_REDIRECT */
   290 
   290 
   291 #ifdef _WIN32_WCE
   291 #ifdef _WIN32_WCE
   292 	nLen = wcslen(szCmdLine)+128+1;
   292 	nLen = wcslen(szCmdLine)+128+1;
   293 	bufp = (wchar_t *)alloca(nLen*2);
   293 	bufp = (wchar_t *)alloca(nLen*2);
   294 	wcscpy (bufp, "\"");
   294 	wcscpy (bufp, TEXT("\""));
   295 	GetModuleFileName(NULL, bufp+1, 128-3);
   295 	GetModuleFileName(NULL, bufp+1, 128-3);
   296 	wcscpy (bufp+wcslen(bufp), "\" ");
   296 	wcscpy (bufp+wcslen(bufp), TEXT("\" "));
   297 	wcsncpy(bufp+wcslen(bufp), szCmdLine,nLen-wcslen(bufp));
   297 	wcsncpy(bufp+wcslen(bufp), szCmdLine,nLen-wcslen(bufp));
   298 	nLen = wcslen(bufp)+1;
   298 	nLen = wcslen(bufp)+1;
   299 	cmdline = (char *)alloca(nLen);
   299 	cmdline = (char *)alloca(nLen);
   300 	if ( cmdline == NULL ) {
   300 	if ( cmdline == NULL ) {
   301 		return OutOfMemory();
   301 		return OutOfMemory();