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
97422b15
Commit
97422b15
authored
Jan 06, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
Jan 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Replace an '#if 0' with an 'if (0)'.
Fix the code so it compiles without warnings.
parent
3ba0e7b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
reg.c
dlls/ntdll/tests/reg.c
+6
-4
No files found.
dlls/ntdll/tests/reg.c
View file @
97422b15
...
...
@@ -301,16 +301,18 @@ static void test_NtOpenKey(void)
OBJECT_ATTRIBUTES
attr
;
ACCESS_MASK
am
=
KEY_READ
;
#if 0 /* Crashes Wine */
if
(
0
)
{
/* Crashes Wine */
/* All NULL */
status
=
pNtOpenKey
(
NULL
,
0
,
NULL
);
ok(status == STATUS_ACCESS_VIOLATION, "Expected STATUS_ACCESS_VIOLATION, got: 0x%08
l
x\n", status);
ok
(
status
==
STATUS_ACCESS_VIOLATION
,
"Expected STATUS_ACCESS_VIOLATION, got: 0x%08x
\n
"
,
status
);
/* NULL attributes */
status
=
pNtOpenKey
(
&
key
,
0
,
NULL
);
ok
(
status
==
STATUS_ACCESS_VIOLATION
/* W2K3/XP/W2K */
||
status
==
STATUS_INVALID_PARAMETER
/* NT4 */
,
"Expected STATUS_ACCESS_VIOLATION or STATUS_INVALID_PARAMETER(NT4), got: 0x%08
l
x\n", status);
#endif
"Expected STATUS_ACCESS_VIOLATION or STATUS_INVALID_PARAMETER(NT4), got: 0x%08x
\n
"
,
status
);
}
InitializeObjectAttributes
(
&
attr
,
&
winetestpath
,
0
,
0
,
0
);
...
...
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