src/main/win32/SDL_win32_main.c
branchSDL-1.2
changeset 4084 70e77cbba87c
parent 1769 290b5baf2fca
child 4118 3c068a8c016f
equal deleted inserted replaced
4083:a66ac59b3939 4084:70e77cbba87c
   232 {
   232 {
   233 	HINSTANCE handle;
   233 	HINSTANCE handle;
   234 	char **argv;
   234 	char **argv;
   235 	int argc;
   235 	int argc;
   236 	char *cmdline;
   236 	char *cmdline;
   237 	DWORD pathlen;
       
   238 #ifdef _WIN32_WCE
       
   239 	wchar_t path[MAX_PATH];
       
   240 #else
       
   241 	char path[MAX_PATH];
       
   242 #endif
       
   243 #ifdef _WIN32_WCE
   237 #ifdef _WIN32_WCE
   244 	wchar_t *bufp;
   238 	wchar_t *bufp;
   245 	int nLen;
   239 	int nLen;
   246 #else
   240 #else
   247 	char *bufp;
   241 	char *bufp;
   248 	size_t nLen;
   242 	size_t nLen;
   249 #endif
   243 #endif
   250 #ifndef NO_STDIO_REDIRECT
   244 #ifndef NO_STDIO_REDIRECT
       
   245 	DWORD pathlen;
       
   246 #ifdef _WIN32_WCE
       
   247 	wchar_t path[MAX_PATH];
       
   248 #else
       
   249 	char path[MAX_PATH];
       
   250 #endif
   251 	FILE *newfp;
   251 	FILE *newfp;
   252 #endif
   252 #endif
   253 
   253 
   254 	/* Start up DDHELP.EXE before opening any files, so DDHELP doesn't
   254 	/* Start up DDHELP.EXE before opening any files, so DDHELP doesn't
   255 	   keep them open.  This is a hack.. hopefully it will be fixed 
   255 	   keep them open.  This is a hack.. hopefully it will be fixed