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
ed8b7b5e
Commit
ed8b7b5e
authored
Feb 26, 2024
by
Paul Gofman
Committed by
Alexandre Julliard
Feb 27, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netapi32: Force debug info in critical sections.
parent
a02d35d3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
nbcmdqueue.c
dlls/netapi32/nbcmdqueue.c
+1
-1
nbnamecache.c
dlls/netapi32/nbnamecache.c
+1
-1
nbt.c
dlls/netapi32/nbt.c
+1
-1
netbios.c
dlls/netapi32/netbios.c
+2
-2
No files found.
dlls/netapi32/nbcmdqueue.c
View file @
ed8b7b5e
...
@@ -61,7 +61,7 @@ struct NBCmdQueue *NBCmdQueueCreate(HANDLE heap)
...
@@ -61,7 +61,7 @@ struct NBCmdQueue *NBCmdQueueCreate(HANDLE heap)
if
(
queue
)
if
(
queue
)
{
{
queue
->
heap
=
heap
;
queue
->
heap
=
heap
;
InitializeCriticalSection
(
&
queue
->
cs
);
InitializeCriticalSection
Ex
(
&
queue
->
cs
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
queue
->
cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": NBCmdQueue.cs"
);
queue
->
cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": NBCmdQueue.cs"
);
queue
->
head
=
NULL
;
queue
->
head
=
NULL
;
}
}
...
...
dlls/netapi32/nbnamecache.c
View file @
ed8b7b5e
...
@@ -100,7 +100,7 @@ struct NBNameCache *NBNameCacheCreate(HANDLE heap, DWORD entryExpireTimeMS)
...
@@ -100,7 +100,7 @@ struct NBNameCache *NBNameCacheCreate(HANDLE heap, DWORD entryExpireTimeMS)
if
(
cache
)
if
(
cache
)
{
{
cache
->
heap
=
heap
;
cache
->
heap
=
heap
;
InitializeCriticalSection
(
&
cache
->
cs
);
InitializeCriticalSection
Ex
(
&
cache
->
cs
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
cache
->
cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": NBNameCache.cs"
);
cache
->
cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": NBNameCache.cs"
);
cache
->
entryExpireTimeMS
=
entryExpireTimeMS
;
cache
->
entryExpireTimeMS
=
entryExpireTimeMS
;
cache
->
head
=
NULL
;
cache
->
head
=
NULL
;
...
...
dlls/netapi32/nbt.c
View file @
ed8b7b5e
...
@@ -1036,7 +1036,7 @@ static UCHAR NetBTCall(void *adapt, PNCB ncb, void **sess)
...
@@ -1036,7 +1036,7 @@ static UCHAR NetBTCall(void *adapt, PNCB ncb, void **sess)
if
(
session
)
if
(
session
)
{
{
session
->
fd
=
fd
;
session
->
fd
=
fd
;
InitializeCriticalSection
(
&
session
->
cs
);
InitializeCriticalSection
Ex
(
&
session
->
cs
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
session
->
cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": NetBTSession.cs"
);
session
->
cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": NetBTSession.cs"
);
*
sess
=
session
;
*
sess
=
session
;
}
}
...
...
dlls/netapi32/netbios.c
View file @
ed8b7b5e
...
@@ -103,7 +103,7 @@ static UCHAR nbResizeAdapterTable(UCHAR newSize)
...
@@ -103,7 +103,7 @@ static UCHAR nbResizeAdapterTable(UCHAR newSize)
void
NetBIOSInit
(
void
)
void
NetBIOSInit
(
void
)
{
{
memset
(
&
gNBTable
,
0
,
sizeof
(
gNBTable
));
memset
(
&
gNBTable
,
0
,
sizeof
(
gNBTable
));
InitializeCriticalSection
(
&
gNBTable
.
cs
);
InitializeCriticalSection
Ex
(
&
gNBTable
.
cs
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
gNBTable
.
cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": NetBIOSAdapterTable.cs"
);
gNBTable
.
cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": NetBIOSAdapterTable.cs"
);
}
}
...
@@ -211,7 +211,7 @@ BOOL NetBIOSRegisterAdapter(ULONG transport, DWORD ifIndex, void *data)
...
@@ -211,7 +211,7 @@ BOOL NetBIOSRegisterAdapter(ULONG transport, DWORD ifIndex, void *data)
gNBTable
.
table
[
i
].
impl
.
ifIndex
=
ifIndex
;
gNBTable
.
table
[
i
].
impl
.
ifIndex
=
ifIndex
;
gNBTable
.
table
[
i
].
impl
.
data
=
data
;
gNBTable
.
table
[
i
].
impl
.
data
=
data
;
gNBTable
.
table
[
i
].
cmdQueue
=
NBCmdQueueCreate
(
GetProcessHeap
());
gNBTable
.
table
[
i
].
cmdQueue
=
NBCmdQueueCreate
(
GetProcessHeap
());
InitializeCriticalSection
(
&
gNBTable
.
table
[
i
].
cs
);
InitializeCriticalSection
Ex
(
&
gNBTable
.
table
[
i
].
cs
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
gNBTable
.
table
[
i
].
cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": NetBIOSAdapterTable.NetBIOSAdapter.cs"
);
gNBTable
.
table
[
i
].
cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": NetBIOSAdapterTable.NetBIOSAdapter.cs"
);
gNBTable
.
table
[
i
].
enabled
=
TRUE
;
gNBTable
.
table
[
i
].
enabled
=
TRUE
;
ret
=
TRUE
;
ret
=
TRUE
;
...
...
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