mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
Windows compilation fixes (Thanks LiHuiShuo)
This commit is contained in:
parent
e16ca862f4
commit
5675c045ae
6 changed files with 52 additions and 16 deletions
|
@ -180,8 +180,8 @@ int main(int argc, char *argv[]){
|
|||
#ifdef Q_WS_WIN
|
||||
char buffer[UNLEN+1] = {0};
|
||||
DWORD buffer_len = UNLEN + 1;
|
||||
if (!GetUserName(buffer, &buffer_len))
|
||||
uid = QString(buffer)
|
||||
if (!GetUserNameA(buffer, &buffer_len))
|
||||
uid = QString(buffer);
|
||||
#else
|
||||
uid = QString::number(getuid());
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue