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
15a7bcb3
Commit
15a7bcb3
authored
Dec 14, 2006
by
Francois Gouget
Committed by
Alexandre Julliard
Dec 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Replace some '#if 0's with 'if (0)'s.
Fix the code so it compiles without warnings.
parent
df299b73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
mru.c
dlls/comctl32/tests/mru.c
+8
-5
No files found.
dlls/comctl32/tests/mru.c
View file @
15a7bcb3
...
...
@@ -165,9 +165,11 @@ static void test_MRUListA(void)
if
(
!
pCreateMRUListA
||
!
pFreeMRUList
||
!
pAddMRUStringA
)
return
;
#if 0 /* Create (NULL) - crashes native */
if
(
0
)
{
/* Create (NULL) - crashes native */
hMRU
=
pCreateMRUListA
(
NULL
);
#endif
}
/* Create (size too small) */
mruA
.
cbSize
=
sizeof
(
mruA
)
-
2
;
...
...
@@ -224,14 +226,15 @@ static void test_MRUListA(void)
iRet
,
GetLastError
());
/* Add (NULL string) */
#if 0
if
(
0
)
{
/* Some native versions crash when passed NULL or fail to SetLastError() */
SetLastError
(
0
);
iRet
=
pAddMRUStringA
(
hMRU
,
NULL
);
ok
(
iRet
==
0
&&
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"AddMRUStringA(NULL str) expected 0,ERROR_INVALID_PARAMETER got %d,%
l
d\n",
"AddMRUStringA(NULL str) expected 0,ERROR_INVALID_PARAMETER got %d,%d
\n
"
,
iRet
,
GetLastError
());
#endif
}
/* Add 3 strings. Check the registry is correct after each add */
SetLastError
(
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