diff options
Diffstat (limited to 'wince')
-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: |