src/video/wincommon/SDL_syswm.c
changeset 36 13ee9f4834ea
parent 0 74212992fb08
child 252 e8157fcb3114
     1.1 --- a/src/video/wincommon/SDL_syswm.c	Wed May 23 00:36:17 2001 +0000
     1.2 +++ b/src/video/wincommon/SDL_syswm.c	Wed May 23 23:35:10 2001 +0000
     1.3 @@ -213,8 +213,8 @@
     1.4  {
     1.5  #ifdef _WIN32_WCE
     1.6  	/* WinCE uses the UNICODE version */
     1.7 -	int nLen = strlen(title);
     1.8 -	LPWSTR lpszW = alloca((nLen+1)*2);
     1.9 +	int nLen = strlen(title)+1;
    1.10 +	LPWSTR lpszW = alloca(nLen*2);
    1.11  	MultiByteToWideChar(CP_ACP, 0, title, -1, lpszW, nLen);
    1.12  	SetWindowText(SDL_Window, lpszW);
    1.13  #else