Skip to content

Update PJSysInfo.pas#27

Open
weirdo12 wants to merge 1 commit intoddablib:developfrom
weirdo12:patch-1
Open

Update PJSysInfo.pas#27
weirdo12 wants to merge 1 commit intoddablib:developfrom
weirdo12:patch-1

Conversation

@weirdo12
Copy link
Contributor

GetComputerName() returns a null character so it requires and wants to know there is space for it. Without the + 1 in the assignment to Size, a valid name like DESKTOP-0123456 that is exactly MAX_COMPUTERNAME_LENGTH characters in length is returned as an empty string.

GetComputerName() returns a null character so it requires and wants to know there is space for it. Without the + 1 in the assignment to Size, a valid name like DESKTOP-0123456 that is exactly MAX_COMPUTERNAME_LENGTH characters in length is returned as an empty string.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant