diff src/video/wincommon/SDL_syswm.c @ 36:13ee9f4834ea

Windows CE patches contributed by Rainer Loritz
author Sam Lantinga <slouken@lokigames.com>
date Wed, 23 May 2001 23:35:10 +0000
parents 74212992fb08
children e8157fcb3114
line wrap: on
line diff
--- a/src/video/wincommon/SDL_syswm.c	Wed May 23 00:36:17 2001 +0000
+++ b/src/video/wincommon/SDL_syswm.c	Wed May 23 23:35:10 2001 +0000
@@ -213,8 +213,8 @@
 {
 #ifdef _WIN32_WCE
 	/* WinCE uses the UNICODE version */
-	int nLen = strlen(title);
-	LPWSTR lpszW = alloca((nLen+1)*2);
+	int nLen = strlen(title)+1;
+	LPWSTR lpszW = alloca(nLen*2);
 	MultiByteToWideChar(CP_ACP, 0, title, -1, lpszW, nLen);
 	SetWindowText(SDL_Window, lpszW);
 #else