GetComputerNameA wants LPDWORD which is pointer to DWORD

This commit is contained in:
nick black 2021-08-15 22:29:16 -04:00
parent d49dd8dbbb
commit 3508f2a869
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -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);
}