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
fc47c7d1
Commit
fc47c7d1
authored
Mar 05, 2010
by
Paul Vriens
Committed by
Alexandre Julliard
Mar 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi/tests: Fix some test failures on Win9x/WinMe.
parent
e271ac6f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
ordinal.c
dlls/shlwapi/tests/ordinal.c
+9
-4
No files found.
dlls/shlwapi/tests/ordinal.c
View file @
fc47c7d1
...
...
@@ -1435,8 +1435,9 @@ static void test_SHSetWindowBits(void)
SetLastError
(
0xdeadbeef
);
style
=
pSHSetWindowBits
(
NULL
,
GWL_STYLE
,
0
,
0
);
ok
(
style
==
0
,
"expected 0 retval, got %d
\n
"
,
style
);
ok
(
GetLastError
()
==
ERROR_INVALID_WINDOW_HANDLE
,
"expected ERROR_INVALID_WINDOW_HANDLE, got %d
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
ERROR_INVALID_WINDOW_HANDLE
||
broken
(
GetLastError
()
==
0xdeadbeef
),
/* Win9x/WinMe */
"expected ERROR_INVALID_WINDOW_HANDLE, got %d
\n
"
,
GetLastError
());
/* zero mask, zero flags */
styleold
=
GetWindowLongA
(
hwnd
,
GWL_STYLE
);
...
...
@@ -1532,7 +1533,9 @@ if (0)
SetLastError
(
0xdeadbeef
);
ret
=
pSHFormatDateTimeA
(
&
filetime
,
&
flags
,
buff
,
sizeof
(
buff
));
ok
(
ret
==
lstrlenA
(
buff
)
+
1
,
"got %d
\n
"
,
ret
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"expected 0xdeadbeef, got %d
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
0xdeadbeef
||
broken
(
GetLastError
()
==
ERROR_INVALID_FLAGS
),
/* Win9x/WinMe */
"expected 0xdeadbeef, got %d
\n
"
,
GetLastError
());
/* now check returned strings */
flags
=
FDTF_SHORTTIME
;
...
...
@@ -1682,7 +1685,9 @@ if (0)
SetLastError
(
0xdeadbeef
);
ret
=
pSHFormatDateTimeW
(
&
filetime
,
&
flags
,
buff
,
sizeof
(
buff
)
/
sizeof
(
WCHAR
));
ok
(
ret
==
lstrlenW
(
buff
)
+
1
,
"got %d
\n
"
,
ret
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"expected 0xdeadbeef, got %d
\n
"
,
GetLastError
());
ok
(
GetLastError
()
==
0xdeadbeef
||
broken
(
GetLastError
()
==
ERROR_INVALID_FLAGS
),
/* Win9x/WinMe */
"expected 0xdeadbeef, got %d
\n
"
,
GetLastError
());
/* now check returned strings */
flags
=
FDTF_SHORTTIME
;
...
...
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