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
8cd82dda
Commit
8cd82dda
authored
Jan 09, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Fix some uninitialized handle checks for Win64.
parent
450e9e3a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
appbar.c
dlls/shell32/tests/appbar.c
+3
-2
shlfileop.c
dlls/shell32/tests/shlfileop.c
+3
-1
No files found.
dlls/shell32/tests/appbar.c
View file @
8cd82dda
...
...
@@ -358,16 +358,17 @@ static void test_setpos(void)
static
void
test_appbarget
(
void
)
{
APPBARDATA
abd
;
HWND
hwnd
,
foregnd
;
HWND
hwnd
,
foregnd
,
unset_hwnd
;
UINT_PTR
ret
;
memset
(
&
abd
,
0xcc
,
sizeof
(
abd
));
memset
(
&
unset_hwnd
,
0xcc
,
sizeof
(
unset_hwnd
));
abd
.
cbSize
=
sizeof
(
abd
);
abd
.
uEdge
=
ABE_BOTTOM
;
hwnd
=
(
HWND
)
SHAppBarMessage
(
ABM_GETAUTOHIDEBAR
,
&
abd
);
ok
(
hwnd
==
NULL
||
IsWindow
(
hwnd
),
"ret %p which is not a window
\n
"
,
hwnd
);
ok
(
abd
.
hWnd
==
(
HWND
)
0xcccccccc
,
"hWnd overwritten
\n
"
);
ok
(
abd
.
hWnd
==
unset_hwnd
,
"hWnd overwritten %p
\n
"
,
abd
.
hWnd
);
if
(
!
pMonitorFromWindow
)
{
...
...
dlls/shell32/tests/shlfileop.c
View file @
8cd82dda
...
...
@@ -202,11 +202,13 @@ static void test_get_file_info(void)
if
(
pSHGetFileInfoW
)
{
HANDLE
unset_icon
;
/* Test whether fields of SHFILEINFOW are always cleared */
memset
(
&
shfiw
,
0xcf
,
sizeof
(
shfiw
));
memset
(
&
unset_icon
,
0xcf
,
sizeof
(
unset_icon
));
rc
=
pSHGetFileInfoW
(
NULL
,
0
,
&
shfiw
,
sizeof
(
shfiw
),
0
);
todo_wine
ok
(
!
rc
,
"SHGetFileInfoW(NULL | 0) should fail
\n
"
);
ok
(
shfiw
.
hIcon
==
(
HANDLE
)
0xcfcfcfcf
,
"SHGetFileInfoW(NULL | 0) should not clear hIcon
\n
"
);
ok
(
shfiw
.
hIcon
==
unset_icon
,
"SHGetFileInfoW(NULL | 0) should not clear hIcon
\n
"
);
todo_wine
ok
(
shfiw
.
szDisplayName
[
0
]
==
0xcfcf
,
"SHGetFileInfoW(NULL | 0) should not clear szDisplayName[0]
\n
"
);
todo_wine
ok
(
shfiw
.
szTypeName
[
0
]
==
0xcfcf
,
"SHGetFileInfoW(NULL | 0) should not clear szTypeName[0]
\n
"
);
todo_wine
ok
(
shfiw
.
iIcon
==
0xcfcfcfcf
,
"SHGetFileInfoW(NULL | 0) should not clear iIcon
\n
"
);
...
...
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