mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
changes based on comments
This commit is contained in:
1 parent
70645d5bc1
commit
ea7b78ef1c
4 files changed
+32
-20
No files matched your search
@@ -1,8 +1,12 @@
|
||||
#include "getcomputername.h"
|
||||
#include <unistd.h>
|
||||
|
||||
int GetComputerName(char *name, size_t len)
|
||||
BOOL GetComputerName(LPTSTR name, LPDWORD len)
|
||||
{
|
||||
int host = gethostname(name, len);
|
||||
return host;
|
||||
int host = gethostname(name, HOST_NAME_MAX);
|
||||
if(host == 0)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
Reference in new issue
Block a user