Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions PJSysInfo.pas
Original file line number Diff line number Diff line change
Expand Up @@ -4785,10 +4785,10 @@ class function TPJComputerInfo.BootMode: TPJBootMode;
class function TPJComputerInfo.ComputerName: string;
var
PComputerName: // buffer for name returned from API
array[0..MAX_COMPUTERNAME_LENGTH] of Char;
array[0..MAX_COMPUTERNAME_LENGTH] of Char;
Size: DWORD; // size of name buffer
begin
Size := MAX_COMPUTERNAME_LENGTH;
Size := MAX_COMPUTERNAME_LENGTH + 1;
if GetComputerName(PComputerName, Size) then
Result := PComputerName
else
Expand Down