mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
GetComputerNameA wants LPDWORD which is pointer to DWORD
This commit is contained in:
parent
d49dd8dbbb
commit
3508f2a869
@ -44,7 +44,7 @@ char* notcurses_hostname(void){
|
||||
}
|
||||
#else // windows
|
||||
char lp[MAX_COMPUTERNAME_LENGTH + 1];
|
||||
LPDWORD s = sizeof(lp);
|
||||
DWORD s = sizeof(lp);
|
||||
if(GetComputerNameA(lp, &s)){
|
||||
return strdup(lp);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user