[PATCH] ws2_32: fixed argument to GetComputerNameExW

Marcus Meissner marcus at jet.franken.de
Wed Sep 9 14:47:14 CDT 2015


its characters, not bytes.
---
 dlls/ws2_32/tests/sock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c
index fa1236e..2bcc92e 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -6313,7 +6313,7 @@ static void test_GetAddrInfoW(void)
     int i, ret;
     ADDRINFOW *result, *result2, *p, hint;
     WCHAR name[256];
-    DWORD size = sizeof(name);
+    DWORD size = sizeof(name)/sizeof(WCHAR);
 
     if (!pGetAddrInfoW || !pFreeAddrInfoW)
     {
-- 
2.5.1




More information about the wine-patches mailing list