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
8d80b132
Commit
8d80b132
authored
Aug 14, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Aug 14, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Make tests run again on win95.
parent
c0b88f88
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
om.c
dlls/ntdll/tests/om.c
+7
-2
No files found.
dlls/ntdll/tests/om.c
View file @
8d80b132
...
...
@@ -25,6 +25,7 @@
#include "winnt.h"
#include "stdlib.h"
static
HANDLE
(
WINAPI
*
pCreateWaitableTimerA
)(
SECURITY_ATTRIBUTES
*
,
BOOL
,
LPCSTR
);
static
NTSTATUS
(
WINAPI
*
pRtlCreateUnicodeStringFromAsciiz
)(
PUNICODE_STRING
,
LPCSTR
);
static
VOID
(
WINAPI
*
pRtlInitUnicodeString
)(
PUNICODE_STRING
,
LPCWSTR
);
static
VOID
(
WINAPI
*
pRtlFreeUnicodeString
)(
PUNICODE_STRING
);
...
...
@@ -246,12 +247,12 @@ static void test_name_collisions(void)
pNtClose
(
h1
);
pNtClose
(
h2
);
h
=
CreateWaitableTimerA
(
NULL
,
TRUE
,
"om.c-test"
);
h
=
p
CreateWaitableTimerA
(
NULL
,
TRUE
,
"om.c-test"
);
ok
(
h
!=
0
,
"CreateWaitableTimerA failed got ret=%p (%d)
\n
"
,
h
,
GetLastError
());
status
=
pNtCreateTimer
(
&
h1
,
GENERIC_ALL
,
&
attr
,
NotificationTimer
);
ok
(
status
==
STATUS_OBJECT_NAME_EXISTS
&&
h1
!=
NULL
,
"NtCreateTimer should have succeeded with STATUS_OBJECT_NAME_EXISTS got(%08x)
\n
"
,
status
);
h2
=
CreateWaitableTimerA
(
NULL
,
TRUE
,
"om.c-test"
);
h2
=
p
CreateWaitableTimerA
(
NULL
,
TRUE
,
"om.c-test"
);
winerr
=
GetLastError
();
ok
(
h2
!=
0
&&
winerr
==
ERROR_ALREADY_EXISTS
,
"CreateWaitableTimerA should have succeeded with ERROR_ALREADY_EXISTS got ret=%p (%d)
\n
"
,
h2
,
winerr
);
...
...
@@ -541,12 +542,16 @@ static void test_symboliclink(void)
START_TEST
(
om
)
{
HMODULE
hntdll
=
GetModuleHandleA
(
"ntdll.dll"
);
HMODULE
hkernel32
=
GetModuleHandleA
(
"kernel32.dll"
);
if
(
!
hntdll
)
{
skip
(
"not running on NT, skipping test
\n
"
);
return
;
}
pCreateWaitableTimerA
=
(
void
*
)
GetProcAddress
(
hkernel32
,
"CreateWaitableTimerA"
);
pRtlCreateUnicodeStringFromAsciiz
=
(
void
*
)
GetProcAddress
(
hntdll
,
"RtlCreateUnicodeStringFromAsciiz"
);
pRtlFreeUnicodeString
=
(
void
*
)
GetProcAddress
(
hntdll
,
"RtlFreeUnicodeString"
);
pNtCreateEvent
=
(
void
*
)
GetProcAddress
(
hntdll
,
"NtCreateEvent"
);
...
...
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