Lauri Kenttä : netapi32: Fix h_addr_list handling.

Alexandre Julliard julliard at winehq.org
Fri Jul 1 14:11:05 CDT 2011


Module: wine
Branch: master
Commit: 46328eff5e8f5855ecbb28c445179515654ccb4a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=46328eff5e8f5855ecbb28c445179515654ccb4a

Author: Lauri Kenttä <lauri.kentta at gmail.com>
Date:   Fri Jul  1 16:10:25 2011 +0300

netapi32: Fix h_addr_list handling.

---

 dlls/netapi32/nbt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/netapi32/nbt.c b/dlls/netapi32/nbt.c
index 8c76b6e..1115967 100644
--- a/dlls/netapi32/nbt.c
+++ b/dlls/netapi32/nbt.c
@@ -577,7 +577,7 @@ static UCHAR NetBTinetResolve(const UCHAR name[NCBNAMSZ],
                         (*cacheEntry)->numAddresses = i;
                         for (i = 0; i < (*cacheEntry)->numAddresses; i++)
                             (*cacheEntry)->addresses[i] =
-                             (DWORD)host->h_addr_list[i];
+                             *(DWORD*)host->h_addr_list[i];
                     }
                     else
                         ret = NRC_OSRESNOTAV;




More information about the wine-cvs mailing list