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
9f8ae26c
Commit
9f8ae26c
authored
Nov 18, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Nov 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netapi32: Fix dead stores.
parent
6e336fe3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
nbt.c
dlls/netapi32/nbt.c
+5
-4
netbios.c
dlls/netapi32/netbios.c
+1
-1
No files found.
dlls/netapi32/nbt.c
View file @
9f8ae26c
...
...
@@ -415,11 +415,8 @@ static BOOL NetBTFindNameAnswerCallback(void *pVoid, WORD answerCount,
if
(
queryData
->
cacheEntry
)
queryData
->
cacheEntry
->
numAddresses
=
0
;
else
{
ret
=
FALSE
;
queryData
->
ret
=
NRC_OSRESNOTAV
;
}
}
if
(
rLen
==
6
&&
queryData
->
cacheEntry
&&
queryData
->
cacheEntry
->
numAddresses
<
answerCount
)
{
...
...
@@ -850,9 +847,9 @@ static UCHAR NetBTAstat(void *adapt, PNCB ncb)
astat
->
max_sess_pkt_size
=
0xffff
;
astat
->
xmit_success
=
adapter
->
xmit_success
;
astat
->
recv_success
=
adapter
->
recv_success
;
}
ret
=
NRC_GOODRET
;
}
}
else
ret
=
NetBTAstatRemote
(
adapter
,
ncb
);
TRACE
(
"returning 0x%02x
\n
"
,
ret
);
...
...
@@ -1183,6 +1180,7 @@ static UCHAR NetBTRecv(void *adapt, void *sess, PNCB ncb)
* message header. */
NetBIOSHangupSession
(
ncb
);
ret
=
NRC_SABORT
;
goto
error
;
}
else
if
(
buffer
[
0
]
!=
NBSS_MSG
)
{
...
...
@@ -1190,6 +1188,7 @@ static UCHAR NetBTRecv(void *adapt, void *sess, PNCB ncb)
FIXME
(
"Received unexpected session msg type %d
\n
"
,
buffer
[
0
]);
NetBIOSHangupSession
(
ncb
);
ret
=
NRC_SABORT
;
goto
error
;
}
else
{
...
...
@@ -1199,6 +1198,7 @@ static UCHAR NetBTRecv(void *adapt, void *sess, PNCB ncb)
FIXME
(
"Received a message that's too long for my taste
\n
"
);
NetBIOSHangupSession
(
ncb
);
ret
=
NRC_SABORT
;
goto
error
;
}
else
{
...
...
@@ -1226,6 +1226,7 @@ static UCHAR NetBTRecv(void *adapt, void *sess, PNCB ncb)
adapter
->
recv_success
++
;
}
}
error:
TRACE
(
"returning 0x%02x
\n
"
,
ret
);
return
ret
;
}
...
...
dlls/netapi32/netbios.c
View file @
9f8ae26c
...
...
@@ -637,7 +637,7 @@ static UCHAR nbInternalHangup(NetBIOSAdapter *adapter, NetBIOSSession *session)
EnterCriticalSection
(
&
adapter
->
cs
);
memset
(
session
,
0
,
sizeof
(
NetBIOSSession
));
LeaveCriticalSection
(
&
adapter
->
cs
);
return
NRC_GOODRET
;
return
ret
;
}
static
UCHAR
nbHangup
(
NetBIOSAdapter
*
adapter
,
const
NCB
*
ncb
)
...
...
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