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
20171ac2
Commit
20171ac2
authored
Apr 03, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Apr 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Pass the correct value to NtClose in the tests.
parent
b2cba95a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
om.c
dlls/ntdll/tests/om.c
+2
-2
reg.c
dlls/ntdll/tests/reg.c
+3
-3
No files found.
dlls/ntdll/tests/om.c
View file @
20171ac2
...
@@ -171,7 +171,7 @@ static void test_namespace_pipe(void)
...
@@ -171,7 +171,7 @@ static void test_namespace_pipe(void)
ok(status == STATUS_SUCCESS, "Failed to open Directory(%08x)\n", status);
ok(status == STATUS_SUCCESS, "Failed to open Directory(%08x)\n", status);
#define DIR_TEST_CREATE_OPEN_SUCCESS(h,n) \
#define DIR_TEST_CREATE_OPEN_SUCCESS(h,n) \
pRtlCreateUnicodeStringFromAsciiz(&str, n);\
pRtlCreateUnicodeStringFromAsciiz(&str, n);\
DIR_TEST_CREATE_SUCCESS(
h) pNtClose(h); DIR_TEST_OPEN_SUCCESS(
h) pNtClose(h); \
DIR_TEST_CREATE_SUCCESS(
&h) pNtClose(h); DIR_TEST_OPEN_SUCCESS(&
h) pNtClose(h); \
pRtlFreeUnicodeString(&str);
pRtlFreeUnicodeString(&str);
static
void
test_name_collisions
(
void
)
static
void
test_name_collisions
(
void
)
...
@@ -352,7 +352,7 @@ static void test_directory(void)
...
@@ -352,7 +352,7 @@ static void test_directory(void)
DIR_TEST_OPEN_FAILURE
(
&
h
,
STATUS_OBJECT_NAME_INVALID
)
DIR_TEST_OPEN_FAILURE
(
&
h
,
STATUS_OBJECT_NAME_INVALID
)
InitializeObjectAttributes
(
&
attr
,
&
str
,
0
,
dir
,
NULL
);
InitializeObjectAttributes
(
&
attr
,
&
str
,
0
,
dir
,
NULL
);
DIR_TEST_CREATE_OPEN_SUCCESS
(
&
h
,
""
)
DIR_TEST_CREATE_OPEN_SUCCESS
(
h
,
""
)
DIR_TEST_CREATE_OPEN_FAILURE
(
&
h
,
"
\\
"
,
STATUS_OBJECT_PATH_SYNTAX_BAD
)
DIR_TEST_CREATE_OPEN_FAILURE
(
&
h
,
"
\\
"
,
STATUS_OBJECT_PATH_SYNTAX_BAD
)
DIR_TEST_CREATE_OPEN_FAILURE
(
&
h
,
"
\\
om.c-test"
,
STATUS_OBJECT_PATH_SYNTAX_BAD
)
DIR_TEST_CREATE_OPEN_FAILURE
(
&
h
,
"
\\
om.c-test"
,
STATUS_OBJECT_PATH_SYNTAX_BAD
)
DIR_TEST_CREATE_OPEN_FAILURE
(
&
h
,
"
\\
om.c-test
\\
"
,
STATUS_OBJECT_PATH_SYNTAX_BAD
)
DIR_TEST_CREATE_OPEN_FAILURE
(
&
h
,
"
\\
om.c-test
\\
"
,
STATUS_OBJECT_PATH_SYNTAX_BAD
)
...
...
dlls/ntdll/tests/reg.c
View file @
20171ac2
...
@@ -368,7 +368,7 @@ static void test_NtCreateKey(void)
...
@@ -368,7 +368,7 @@ static void test_NtCreateKey(void)
status
=
pNtCreateKey
(
&
key
,
am
,
&
attr
,
0
,
0
,
0
,
0
);
status
=
pNtCreateKey
(
&
key
,
am
,
&
attr
,
0
,
0
,
0
,
0
);
ok
(
status
==
STATUS_INVALID_PARAMETER
,
"Expected STATUS_INVALID_PARAMETER, got: 0x%08x
\n
"
,
status
);
ok
(
status
==
STATUS_INVALID_PARAMETER
,
"Expected STATUS_INVALID_PARAMETER, got: 0x%08x
\n
"
,
status
);
pNtClose
(
&
key
);
pNtClose
(
key
);
}
}
static
void
test_NtSetValueKey
(
void
)
static
void
test_NtSetValueKey
(
void
)
...
@@ -390,7 +390,7 @@ static void test_NtSetValueKey(void)
...
@@ -390,7 +390,7 @@ static void test_NtSetValueKey(void)
ok
(
status
==
STATUS_SUCCESS
,
"NtSetValueKey Failed: 0x%08x
\n
"
,
status
);
ok
(
status
==
STATUS_SUCCESS
,
"NtSetValueKey Failed: 0x%08x
\n
"
,
status
);
pRtlFreeUnicodeString
(
&
ValName
);
pRtlFreeUnicodeString
(
&
ValName
);
pNtClose
(
&
key
);
pNtClose
(
key
);
}
}
static
void
test_RtlOpenCurrentUser
(
void
)
static
void
test_RtlOpenCurrentUser
(
void
)
...
@@ -399,7 +399,7 @@ static void test_RtlOpenCurrentUser(void)
...
@@ -399,7 +399,7 @@ static void test_RtlOpenCurrentUser(void)
HKEY
handle
;
HKEY
handle
;
status
=
pRtlOpenCurrentUser
(
KEY_READ
,
&
handle
);
status
=
pRtlOpenCurrentUser
(
KEY_READ
,
&
handle
);
ok
(
status
==
STATUS_SUCCESS
,
"RtlOpenCurrentUser Failed: 0x%08x
\n
"
,
status
);
ok
(
status
==
STATUS_SUCCESS
,
"RtlOpenCurrentUser Failed: 0x%08x
\n
"
,
status
);
pNtClose
(
&
handle
);
pNtClose
(
handle
);
}
}
static
void
test_RtlCheckRegistryKey
(
void
)
static
void
test_RtlCheckRegistryKey
(
void
)
...
...
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