Couple more Unicode fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3104 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -156,7 +156,7 @@ bool wxGetUserId(wxChar *buf, int maxSize)
|
||||
if ( ::GetUserName(buf, &nSize) == 0 )
|
||||
{
|
||||
// actually, it does happen on Win9x if the user didn't log on
|
||||
DWORD res = ::GetEnvironmentVariable("username", buf, maxSize);
|
||||
DWORD res = ::GetEnvironmentVariable(_T("username"), buf, maxSize);
|
||||
if ( res == 0 )
|
||||
{
|
||||
// not found
|
||||
|
Reference in New Issue
Block a user