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
a02d35d3
Commit
a02d35d3
authored
Feb 26, 2024
by
Paul Gofman
Committed by
Alexandre Julliard
Feb 27, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Force debug info in critical sections.
parent
bca70386
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
concurrency.c
dlls/msvcrt/concurrency.c
+2
-2
file.c
dlls/msvcrt/file.c
+1
-1
lock.c
dlls/msvcrt/lock.c
+1
-1
No files found.
dlls/msvcrt/concurrency.c
View file @
a02d35d3
...
...
@@ -1637,7 +1637,7 @@ static ThreadScheduler* ThreadScheduler_ctor(ThreadScheduler *this,
this
->
shutdown_count
=
this
->
shutdown_size
=
0
;
this
->
shutdown_events
=
NULL
;
InitializeCriticalSection
(
&
this
->
cs
);
InitializeCriticalSection
Ex
(
&
this
->
cs
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
this
->
cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": ThreadScheduler"
);
list_init
(
&
this
->
scheduled_chores
);
...
...
@@ -3525,7 +3525,7 @@ _ReentrantBlockingLock* __thiscall _ReentrantBlockingLock_ctor(_ReentrantBlockin
{
TRACE
(
"(%p)
\n
"
,
this
);
InitializeCriticalSection
(
&
this
->
cs
);
InitializeCriticalSection
Ex
(
&
this
->
cs
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
this
->
cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": _ReentrantBlockingLock"
);
return
this
;
}
...
...
dlls/msvcrt/file.c
View file @
a02d35d3
...
...
@@ -606,7 +606,7 @@ static FILE* msvcrt_alloc_fp(void)
{
if
(
file
<
MSVCRT__iob
||
file
>=
MSVCRT__iob
+
_IOB_ENTRIES
)
{
InitializeCriticalSection
(
&
((
file_crit
*
)
file
)
->
crit
);
InitializeCriticalSection
Ex
(
&
((
file_crit
*
)
file
)
->
crit
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
((
file_crit
*
)
file
)
->
crit
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": file_crit.crit"
);
}
MSVCRT_stream_idx
++
;
...
...
dlls/msvcrt/lock.c
View file @
a02d35d3
...
...
@@ -44,7 +44,7 @@ static inline void msvcrt_mlock_set_entry_initialized( int locknum, BOOL initial
static
inline
void
msvcrt_initialize_mlock
(
int
locknum
)
{
InitializeCriticalSection
(
&
(
lock_table
[
locknum
].
crit
)
);
InitializeCriticalSection
Ex
(
&
(
lock_table
[
locknum
].
crit
),
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
lock_table
[
locknum
].
crit
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": LOCKTABLEENTRY.crit"
);
msvcrt_mlock_set_entry_initialized
(
locknum
,
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