cast to make MSVC happy
This commit is contained in:
parent
1ca890756a
commit
1f8b45365e
|
@ -311,7 +311,7 @@ std::string getUser()
|
||||||
char buff[1024];
|
char buff[1024];
|
||||||
int size = 1024;
|
int size = 1024;
|
||||||
|
|
||||||
if (GetUserName(buff,&size))
|
if (GetUserName(buff,LPDWORD(&size)))
|
||||||
return std::string(buff);
|
return std::string(buff);
|
||||||
#else
|
#else
|
||||||
char* u = getenv("USER");
|
char* u = getenv("USER");
|
||||||
|
|
Loading…
Reference in New Issue