projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
895a44a
)
[IPHLPAPI]
author
Thomas Faber
<thomas.faber@reactos.org>
Wed, 5 Nov 2014 16:31:13 +0000
(16:31 +0000)
committer
Thomas Faber
<thomas.faber@reactos.org>
Wed, 5 Nov 2014 16:31:13 +0000
(16:31 +0000)
- Fix MSVC build
svn path=/trunk/; revision=65265
reactos/dll/win32/iphlpapi/address.c
patch
|
blob
|
history
diff --git
a/reactos/dll/win32/iphlpapi/address.c
b/reactos/dll/win32/iphlpapi/address.c
index
ad8c561
..
2571536
100644
(file)
--- a/
reactos/dll/win32/iphlpapi/address.c
+++ b/
reactos/dll/win32/iphlpapi/address.c
@@
-330,7
+330,8
@@
GetAdaptersAddresses(
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 */