333a1110f5
The lpnSize parameter for GetComputerNameEx specifies the total size of the buffer (in characters). However, the current code calculated the amount of bytes. Since only GetComputerNameExA was used and because sizeof(CHAR) == 1 the result was correct but the math was wrong. Credit goes to @byteboon |
||
---|---|---|
.. | ||
include | ||
libwinpr | ||
test | ||
tools | ||
.gitignore | ||
CMakeLists.txt | ||
winpr.pc.in | ||
WinPRConfig.cmake.in |