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
64291938
Commit
64291938
authored
Apr 29, 2019
by
Jactry Zeng
Committed by
Alexandre Julliard
Apr 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Avoid a crash on WinXP and Win2K.
Signed-off-by:
Jactry Zeng
<
jzeng@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
70526d55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
sync.c
dlls/kernel32/tests/sync.c
+9
-1
No files found.
dlls/kernel32/tests/sync.c
View file @
64291938
...
...
@@ -38,6 +38,7 @@ static BOOL (WINAPI *pInitOnceExecuteOnce)(PINIT_ONCE,PINIT_ONCE_FN,PVOID,LPVO
static
BOOL
(
WINAPI
*
pInitOnceBeginInitialize
)(
PINIT_ONCE
,
DWORD
,
BOOL
*
,
LPVOID
*
);
static
BOOL
(
WINAPI
*
pInitOnceComplete
)(
PINIT_ONCE
,
DWORD
,
LPVOID
);
static
BOOL
(
WINAPI
*
pInitializeCriticalSectionEx
)(
CRITICAL_SECTION
*
,
DWORD
,
DWORD
);
static
VOID
(
WINAPI
*
pInitializeConditionVariable
)(
PCONDITION_VARIABLE
);
static
BOOL
(
WINAPI
*
pSleepConditionVariableCS
)(
PCONDITION_VARIABLE
,
PCRITICAL_SECTION
,
DWORD
);
static
BOOL
(
WINAPI
*
pSleepConditionVariableSRW
)(
PCONDITION_VARIABLE
,
PSRWLOCK
,
DWORD
,
ULONG
);
...
...
@@ -2648,8 +2649,14 @@ static void test_crit_section(void)
ok
(
cs
.
DebugInfo
!=
NULL
,
"Unexpected debug info pointer %p.
\n
"
,
cs
.
DebugInfo
);
DeleteCriticalSection
(
&
cs
);
if
(
!
pInitializeCriticalSectionEx
)
{
win_skip
(
"InitializeCriticalSectionEx isn't available, skipping tests.
\n
"
);
return
;
}
memset
(
&
cs
,
0
,
sizeof
(
cs
));
ret
=
InitializeCriticalSectionEx
(
&
cs
,
0
,
CRITICAL_SECTION_NO_DEBUG_INFO
);
ret
=
p
InitializeCriticalSectionEx
(
&
cs
,
0
,
CRITICAL_SECTION_NO_DEBUG_INFO
);
ok
(
ret
,
"Failed to initialize critical section.
\n
"
);
todo_wine
ok
(
cs
.
DebugInfo
==
(
void
*
)(
ULONG_PTR
)
-
1
,
"Unexpected debug info pointer %p.
\n
"
,
cs
.
DebugInfo
);
...
...
@@ -2672,6 +2679,7 @@ START_TEST(sync)
pSleepConditionVariableSRW
=
(
void
*
)
GetProcAddress
(
hdll
,
"SleepConditionVariableSRW"
);
pWakeAllConditionVariable
=
(
void
*
)
GetProcAddress
(
hdll
,
"WakeAllConditionVariable"
);
pWakeConditionVariable
=
(
void
*
)
GetProcAddress
(
hdll
,
"WakeConditionVariable"
);
pInitializeCriticalSectionEx
=
(
void
*
)
GetProcAddress
(
hdll
,
"InitializeCriticalSectionEx"
);
pInitializeSRWLock
=
(
void
*
)
GetProcAddress
(
hdll
,
"InitializeSRWLock"
);
pAcquireSRWLockExclusive
=
(
void
*
)
GetProcAddress
(
hdll
,
"AcquireSRWLockExclusive"
);
pAcquireSRWLockShared
=
(
void
*
)
GetProcAddress
(
hdll
,
"AcquireSRWLockShared"
);
...
...
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