diff options
author | Simon Howard | 2009-06-07 01:27:30 +0000 |
---|---|---|
committer | Simon Howard | 2009-06-07 01:27:30 +0000 |
commit | 52c831999bddb7b68b855d0fec644240863cbee2 (patch) | |
tree | d409fb967f4cab9a9b2c7e9c14652798ff68ec68 | |
parent | 2df46868ae68060f3eb681a5dd1943ee522a88b4 (diff) | |
download | chocolate-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
-rw-r--r-- | wince/env.c | 3 |
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: |