Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ae459e13
Commit
ae459e13
authored
Jan 02, 2004
by
Juan Lang
Committed by
Alexandre Julliard
Jan 02, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly L2-encode the NetBIOS scope ID in DeviceIo_VNB, so
ipconfig.exe and winipcfg.exe display it.
parent
cb759ba9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
5 deletions
+19
-5
device.c
dlls/kernel/device.c
+19
-5
No files found.
dlls/kernel/device.c
View file @
ae459e13
...
@@ -957,12 +957,26 @@ static BOOL DeviceIo_VNB(DWORD dwIoControlCode,
...
@@ -957,12 +957,26 @@ static BOOL DeviceIo_VNB(DWORD dwIoControlCode,
if
(
NO_ERROR
==
error
)
if
(
NO_ERROR
==
error
)
{
{
info
->
nodeType
=
(
WORD
)
fixedInfo
->
NodeType
;
info
->
nodeType
=
(
WORD
)
fixedInfo
->
NodeType
;
info
->
scopeLen
=
m
ax
(
strlen
(
fixedInfo
->
ScopeId
)
+
1
,
info
->
scopeLen
=
m
in
(
strlen
(
fixedInfo
->
ScopeId
)
+
1
,
sizeof
(
info
->
scope
)
-
1
);
sizeof
(
info
->
scope
)
-
2
);
memcpy
(
info
->
scope
,
fixedInfo
->
ScopeId
,
memcpy
(
info
->
scope
+
1
,
fixedInfo
->
ScopeId
,
info
->
scopeLen
);
info
->
scopeLen
);
info
->
scope
[
info
->
scopeLen
]
=
'\0'
;
info
->
scope
[
info
->
scopeLen
+
1
]
=
'\0'
;
/* FIXME: gotta L2-encode the scope ID */
{
/* convert into L2-encoded version */
char
*
ptr
,
*
lenPtr
;
for
(
ptr
=
info
->
scope
+
1
;
*
ptr
&&
ptr
-
info
->
scope
<
sizeof
(
info
->
scope
);
)
{
for
(
lenPtr
=
ptr
-
1
,
*
lenPtr
=
0
;
*
ptr
&&
*
ptr
!=
'.'
&&
ptr
-
info
->
scope
<
sizeof
(
info
->
scope
);
ptr
++
)
*
lenPtr
+=
1
;
ptr
++
;
}
}
/* could set DNS servers here too, but since
/* could set DNS servers here too, but since
* ipconfig.exe and winipcfg.exe read these from the
* ipconfig.exe and winipcfg.exe read these from the
* registry, there's no point */
* registry, there's no point */
...
...
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