[PATCH 6/6] kernel32: Fix the GetComputerName* functions to not write to the buffer at all if there is not enough space.

Robert Shearman rob at codeweavers.com
Thu Feb 15 10:27:48 CST 2007

Add tests for the GetComputerName* functions that show this issue.

Remove the exception handlers, since testing on XP SP2 shows that access 
violations are not caught.
  dlls/kernel32/computername.c  |  122 
  dlls/kernel32/tests/environ.c |  131 
  2 files changed, 171 insertions(+), 82 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 06fdac7b8c9a4d8c2b30a35d534fa7acd4ca37e2.diff
Type: text/x-patch
Size: 12551 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070215/c79b08b0/06fdac7b8c9a4d8c2b30a35d534fa7acd4ca37e2-0001.bin

More information about the wine-patches mailing list