From 52c831999bddb7b68b855d0fec644240863cbee2 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 7 Jun 2009 01:27:30 +0000 Subject: Use GetUserNameExW, not GetUserName (doesn't exist on WinCE) Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1556 --- wince/env.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wince') diff --git a/wince/env.c b/wince/env.c index ceba6402..a678de2d 100644 --- a/wince/env.c +++ b/wince/env.c @@ -9,6 +9,7 @@ #include #include +#include #include #include "env.h" @@ -35,7 +36,7 @@ static void LoadBuffers(void) // Username: buf_len = UNLEN; - GetUserNameW(temp, &buf_len); + GetUserNameExW(NameDisplay, temp, &buf_len); WCharToChar(temp, temp_buf, MAX_PATH); // Temp dir: -- cgit v1.2.3