src/video/wincommon/SDL_sysevents.c
changeset 36 13ee9f4834ea
parent 13 e30a8ce27c22
child 61 994ed1d668e7
     1.1 --- a/src/video/wincommon/SDL_sysevents.c	Wed May 23 00:36:17 2001 +0000
     1.2 +++ b/src/video/wincommon/SDL_sysevents.c	Wed May 23 23:35:10 2001 +0000
     1.3 @@ -496,12 +496,12 @@
     1.4  #ifdef _WIN32_WCE
     1.5      {
     1.6  	/* WinCE uses the UNICODE version */
     1.7 -	int nLen = strlen(name);
     1.8 -	LPWSTR lpszW = alloca((nLen+1)*2);
     1.9 +	int nLen = strlen(name)+1;
    1.10 +	LPWSTR lpszW = alloca(nLen*2);
    1.11  	MultiByteToWideChar(CP_ACP, 0, name, -1, lpszW, nLen);
    1.12  	class.hIcon		= LoadImage(hInst, lpszW, IMAGE_ICON,
    1.13  	                                    0, 0, LR_DEFAULTCOLOR);
    1.14 -	class.lpszMenuName	= lpszW;
    1.15 +	class.lpszMenuName	= NULL;
    1.16  	class.lpszClassName	= lpszW;
    1.17      }
    1.18  #else