src/video/wincommon/SDL_sysevents.c
changeset 1505 4d005dfbb7f5
parent 1498 3968f7cba10c
child 1523 21b1fbb53f4a
     1.1 --- a/src/video/wincommon/SDL_sysevents.c	Mon Mar 13 01:20:05 2006 +0000
     1.2 +++ b/src/video/wincommon/SDL_sysevents.c	Mon Mar 13 01:33:58 2006 +0000
     1.3 @@ -762,13 +762,9 @@
     1.4  	if ( name ) {
     1.5  #ifdef _WIN32_WCE
     1.6  		/* WinCE uses the UNICODE version */
     1.7 -		size_t nLen = SDL_strlen(name)+1;
     1.8 -		SDL_Appname = SDL_malloc(nLen*2);
     1.9 -		MultiByteToWideChar(CP_ACP, 0, name, -1, SDL_Appname, nLen);
    1.10 +		SDL_Appname = SDL_iconv_utf8_ucs2(name);
    1.11  #else
    1.12 -		size_t nLen = SDL_strlen(name)+1;
    1.13 -		SDL_Appname = SDL_malloc(nLen);
    1.14 -		SDL_strlcpy(SDL_Appname, name, nLen);
    1.15 +		SDL_Appname = SDL_iconv_utf8_latin1(name);
    1.16  #endif /* _WIN32_WCE */
    1.17  		SDL_Appstyle = style;
    1.18  		SDL_Instance = hInst ? hInst : SDL_GetModuleHandle();