mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
Windows compilation fix improvement
This commit is contained in:
parent
a98a002d57
commit
8d1fd7ee8e
2 changed files with 6 additions and 4 deletions
|
@ -59,6 +59,7 @@
|
|||
#include "stacktrace.h"
|
||||
#else
|
||||
#include <windows.h>
|
||||
#include <lmcons.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
|
@ -181,8 +182,8 @@ int main(int argc, char *argv[]){
|
|||
QLocalSocket localSocket;
|
||||
QString uid;
|
||||
#ifdef Q_WS_WIN
|
||||
char buffer[255] = {0};
|
||||
DWORD buffer_len;
|
||||
char buffer[UNLEN+1] = {0};
|
||||
DWORD buffer_len = UNLEN + 1;
|
||||
if (!GetUserName(buffer, &buffer_len))
|
||||
uid = QString(buffer)
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue