summaryrefslogtreecommitdiff
path: root/wince
diff options
context:
space:
mode:
authorSimon Howard2009-06-07 01:27:30 +0000
committerSimon Howard2009-06-07 01:27:30 +0000
commit52c831999bddb7b68b855d0fec644240863cbee2 (patch)
treed409fb967f4cab9a9b2c7e9c14652798ff68ec68 /wince
parent2df46868ae68060f3eb681a5dd1943ee522a88b4 (diff)
downloadchocolate-doom-52c831999bddb7b68b855d0fec644240863cbee2.tar.gz
chocolate-doom-52c831999bddb7b68b855d0fec644240863cbee2.tar.bz2
chocolate-doom-52c831999bddb7b68b855d0fec644240863cbee2.zip
Use GetUserNameExW, not GetUserName (doesn't exist on WinCE)
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1556
Diffstat (limited to 'wince')
-rw-r--r--wince/env.c3
1 files changed, 2 insertions, 1 deletions
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 <windows.h>
#include <lmcons.h>
+#include <secext.h>
#include <shlobj.h>
#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: