Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
9b5cde85
Commit
9b5cde85
authored
Jun 23, 2003
by
Eric Pouech
Committed by
Alexandre Julliard
Jun 23, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a few bugs in network interface handling (code & test).
parent
412d37f6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+1
-1
wksta.c
dlls/netapi32/tests/wksta.c
+1
-1
wksta.c
dlls/netapi32/wksta.c
+2
-2
No files found.
dlls/iphlpapi/iphlpapi_main.c
View file @
9b5cde85
...
...
@@ -352,7 +352,7 @@ DWORD WINAPI GetAdaptersInfo(PIP_ADAPTER_INFO pAdapterInfo, PULONG pOutBufLen)
toIPAddressString
(
getInterfaceMaskByIndex
(
table
->
indexes
[
ndx
]),
ptr
->
IpAddressList
.
IpMask
.
String
);
if
(
ndx
<
table
->
numIndexes
+
1
)
ptr
->
Next
=
&
pAdapterInfo
[
ndx
+
1
];
ptr
->
Next
=
(
ndx
==
table
->
numIndexes
-
1
)
?
NULL
:
&
pAdapterInfo
[
ndx
+
1
];
}
ret
=
NO_ERROR
;
}
...
...
dlls/netapi32/tests/wksta.c
View file @
9b5cde85
...
...
@@ -162,7 +162,7 @@ static void run_wkstatransportenum_tests(void)
ok
(
bufPtr
!=
NULL
,
"got data back"
);
ok
(
entriesRead
>
0
,
"read at least one transport"
);
ok
(
totalEntries
>
0
,
"at least one transport"
);
NetApiBufferFree
(
bufPtr
);
p
NetApiBufferFree
(
bufPtr
);
}
}
...
...
dlls/netapi32/wksta.c
View file @
9b5cde85
...
...
@@ -156,9 +156,9 @@ NetWkstaTransportEnum(LPCWSTR ServerName, DWORD level, LPBYTE* pbuf,
for
(
n_adapt
=
0
,
ptr
=
info
;
ptr
;
ptr
=
ptr
->
Next
)
n_adapt
++
;
size_needed
=
n_adapt
*
(
sizeof
(
WKSTA_TRANSPORT_INFO_0
)
size_needed
=
n_adapt
*
sizeof
(
WKSTA_TRANSPORT_INFO_0
)
+
n_adapt
*
TRANSPORT_NAME_LEN
*
sizeof
(
WCHAR
)
+
n_adapt
*
13
*
sizeof
(
WCHAR
)
)
;
+
n_adapt
*
13
*
sizeof
(
WCHAR
);
if
(
prefmaxlen
==
MAX_PREFERRED_LENGTH
)
NetApiBufferAllocate
(
size_needed
,
(
LPVOID
*
)
pbuf
);
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment