comparison win/dw.c @ 1620:32b5fba0b00a

Must convert from UTF8 for the raw HTML on Windows regardless of the ANSI/UNICODE mode. This fixes incorrect encoding on raw HTML widgets. Also need to use the ANSI version of GetModuleFileName when converting the command line parameters, or maybe convert to UTF8?
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 27 Mar 2012 15:09:52 +0000
parents 428148fd0976
children 0e8c80209c4b
comparison
equal deleted inserted replaced
1619:4034562aee7f 1620:32b5fba0b00a
372 } 372 }
373 } 373 }
374 374
375 argv = (char **)malloc(sizeof(char *) * ((*count)+1)); 375 argv = (char **)malloc(sizeof(char *) * ((*count)+1));
376 argv[0] = malloc(260); 376 argv[0] = malloc(260);
377 GetModuleFileName(DWInstance, argv[0], 260); 377 GetModuleFileNameA(DWInstance, argv[0], 260);
378 378
379 argstart = tmp = start; 379 argstart = tmp = start;
380 380
381 if(*start) 381 if(*start)
382 { 382 {