kernel32: Fix GetComputerNameA to not count trailing NULL, with test
(try 2)
Alasdair Sinclair
alasdairs at dsl.pipex.com
Fri Mar 2 21:03:53 CST 2007
GetComputerNameA shouldn't count the trailing NULL in the returned size.
As documented by MSDN and the test requested by Dmitry Timoshkov shows.
Alasdair
---
dlls/kernel32/computername.c | 3 +--
dlls/kernel32/tests/environ.c | 11 +++++++++++
2 files changed, 12 insertions(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 31fac3e2ca4029e8aa8bca22bed753eefe969a68.diff
Type: text/x-patch
Size: 1663 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070303/de0f7672/31fac3e2ca4029e8aa8bca22bed753eefe969a68-0001.bin
More information about the wine-patches
mailing list