cast to make MSVC happy

This commit is contained in:
Joel Heaton 2015-04-09 18:49:45 +01:00
parent 1ca890756a
commit 1f8b45365e
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ std::string getUser()
char buff[1024];
int size = 1024;
if (GetUserName(buff,&size))
if (GetUserName(buff,LPDWORD(&size)))
return std::string(buff);
#else
char* u = getenv("USER");