Author: tfaber
Date: Wed Nov 5 16:31:13 2014
New Revision: 65265
URL:
http://svn.reactos.org/svn/reactos?rev=65265&view=rev
Log:
[IPHLPAPI]
- Fix MSVC build
Modified:
trunk/reactos/dll/win32/iphlpapi/address.c
Modified: trunk/reactos/dll/win32/iphlpapi/address.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/iphlpapi/address…
==============================================================================
--- trunk/reactos/dll/win32/iphlpapi/address.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/iphlpapi/address.c [iso-8859-1] Wed Nov 5 16:31:13 2014
@@ -330,7 +330,8 @@
if (InterfacesList[i].tei_entity == IF_ENTITY)
{
- BYTE EntryBuffer[FIELD_OFFSET(IFEntry,
if_descr[MAX_ADAPTER_DESCRIPTION_LENGTH + 1])];
+ BYTE EntryBuffer[FIELD_OFFSET(IFEntry, if_descr) +
+ RTL_FIELD_SIZE(IFEntry, if_descr[0]) *
(MAX_ADAPTER_DESCRIPTION_LENGTH + 1)];
IFEntry* Entry = (IFEntry*)EntryBuffer;
/* Remember we got one */