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
4a5f61bb
Commit
4a5f61bb
authored
Mar 10, 2007
by
Jan Zerebecki
Committed by
Alexandre Julliard
Mar 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netapi32: Add DebugInfo to critical sections.
parent
aaf9a151
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
0 deletions
+10
-0
nbcmdqueue.c
dlls/netapi32/nbcmdqueue.c
+2
-0
nbnamecache.c
dlls/netapi32/nbnamecache.c
+2
-0
nbt.c
dlls/netapi32/nbt.c
+2
-0
netbios.c
dlls/netapi32/netbios.c
+4
-0
No files found.
dlls/netapi32/nbcmdqueue.c
View file @
4a5f61bb
...
...
@@ -62,6 +62,7 @@ struct NBCmdQueue *NBCmdQueueCreate(HANDLE heap)
{
queue
->
heap
=
heap
;
InitializeCriticalSection
(
&
queue
->
cs
);
queue
->
cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": NBCmdQueue.cs"
);
queue
->
head
=
NULL
;
}
return
queue
;
...
...
@@ -193,6 +194,7 @@ void NBCmdQueueDestroy(struct NBCmdQueue *queue)
if
(
queue
)
{
NBCmdQueueCancelAll
(
queue
);
queue
->
cs
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
queue
->
cs
);
HeapFree
(
queue
->
heap
,
0
,
queue
);
}
...
...
dlls/netapi32/nbnamecache.c
View file @
4a5f61bb
...
...
@@ -104,6 +104,7 @@ struct NBNameCache *NBNameCacheCreate(HANDLE heap, DWORD entryExpireTimeMS)
{
cache
->
heap
=
heap
;
InitializeCriticalSection
(
&
cache
->
cs
);
cache
->
cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": NBNameCache.cs"
);
cache
->
entryExpireTimeMS
=
entryExpireTimeMS
;
cache
->
head
=
NULL
;
}
...
...
@@ -204,6 +205,7 @@ void NBNameCacheDestroy(struct NBNameCache *cache)
{
if
(
cache
)
{
cache
->
cs
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
cache
->
cs
);
while
(
cache
->
head
)
NBNameCacheUnlinkNode
(
cache
,
&
cache
->
head
);
...
...
dlls/netapi32/nbt.c
View file @
4a5f61bb
...
...
@@ -1050,6 +1050,7 @@ static UCHAR NetBTCall(void *adapt, PNCB ncb, void **sess)
{
session
->
fd
=
fd
;
InitializeCriticalSection
(
&
session
->
cs
);
session
->
cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": NetBTSession.cs"
);
*
sess
=
session
;
}
else
...
...
@@ -1243,6 +1244,7 @@ static UCHAR NetBTHangup(void *adapt, void *sess)
closesocket
(
session
->
fd
);
session
->
fd
=
INVALID_SOCKET
;
session
->
bytesPending
=
0
;
session
->
cs
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
session
->
cs
);
HeapFree
(
GetProcessHeap
(),
0
,
session
);
...
...
dlls/netapi32/netbios.c
View file @
4a5f61bb
...
...
@@ -104,6 +104,7 @@ void NetBIOSInit(void)
{
memset
(
&
gNBTable
,
0
,
sizeof
(
gNBTable
));
InitializeCriticalSection
(
&
gNBTable
.
cs
);
gNBTable
.
cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": NetBIOSAdapterTable.cs"
);
}
void
NetBIOSShutdown
(
void
)
...
...
@@ -122,6 +123,7 @@ void NetBIOSShutdown(void)
if
(
gTransports
[
i
].
transport
.
cleanup
)
gTransports
[
i
].
transport
.
cleanup
();
LeaveCriticalSection
(
&
gNBTable
.
cs
);
gNBTable
.
cs
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
gNBTable
.
cs
);
HeapFree
(
GetProcessHeap
(),
0
,
gNBTable
.
table
);
}
...
...
@@ -210,6 +212,7 @@ BOOL NetBIOSRegisterAdapter(ULONG transport, DWORD ifIndex, void *data)
gNBTable
.
table
[
i
].
impl
.
data
=
data
;
gNBTable
.
table
[
i
].
cmdQueue
=
NBCmdQueueCreate
(
GetProcessHeap
());
InitializeCriticalSection
(
&
gNBTable
.
table
[
i
].
cs
);
gNBTable
.
table
[
i
].
cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": NetBIOSAdapterTable.NetBIOSAdapter.cs"
);
gNBTable
.
table
[
i
].
enabled
=
TRUE
;
ret
=
TRUE
;
}
...
...
@@ -246,6 +249,7 @@ static void nbShutdownAdapter(NetBIOSAdapter *adapter)
if
(
adapter
->
transport
->
cleanupAdapter
)
adapter
->
transport
->
cleanupAdapter
(
adapter
->
impl
.
data
);
NBCmdQueueDestroy
(
adapter
->
cmdQueue
);
adapter
->
cs
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
adapter
->
cs
);
memset
(
adapter
,
0
,
sizeof
(
NetBIOSAdapter
));
}
...
...
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