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
87c9a0dd
Commit
87c9a0dd
authored
Mar 05, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Use correct integral type.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f588d96e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
12 deletions
+15
-12
recyclebin.c
dlls/shell32/tests/recyclebin.c
+1
-1
shlfileop.c
dlls/shell32/tests/shlfileop.c
+5
-4
shlfolder.c
dlls/shell32/tests/shlfolder.c
+9
-7
No files found.
dlls/shell32/tests/recyclebin.c
View file @
87c9a0dd
...
...
@@ -39,7 +39,7 @@ static void test_query_recyclebin(void)
{
SHQUERYRBINFO
info1
=
{
sizeof
(
info1
),
0xdeadbeef
,
0xdeadbeef
};
SHQUERYRBINFO
info2
=
{
sizeof
(
info2
),
0xdeadbeef
,
0xdeadbeef
};
UINT
written
;
DWORD
written
;
HRESULT
hr
;
HANDLE
file
;
SHFILEOPSTRUCTA
shfo
;
...
...
dlls/shell32/tests/shlfileop.c
View file @
87c9a0dd
...
...
@@ -290,7 +290,8 @@ static void check_icon_size( HICON icon, DWORD flags )
{
ICONINFO
info
;
BITMAP
bm
;
SIZE
list_size
,
metrics_size
;
SIZE
metrics_size
;
int
list_cx
,
list_cy
;
IImageList
*
list
;
GetIconInfo
(
icon
,
&
info
);
...
...
@@ -298,7 +299,7 @@ static void check_icon_size( HICON icon, DWORD flags )
SHGetImageList
(
(
flags
&
SHGFI_SMALLICON
)
?
SHIL_SMALL
:
SHIL_LARGE
,
&
IID_IImageList
,
(
void
**
)
&
list
);
IImageList_GetIconSize
(
list
,
&
list_
size
.
cx
,
&
list_size
.
cy
);
IImageList_GetIconSize
(
list
,
&
list_
cx
,
&
list_
cy
);
IImageList_Release
(
list
);
metrics_size
.
cx
=
GetSystemMetrics
(
(
flags
&
SHGFI_SMALLICON
)
?
SM_CXSMICON
:
SM_CXICON
);
...
...
@@ -307,8 +308,8 @@ static void check_icon_size( HICON icon, DWORD flags )
if
(
flags
&
SHGFI_SHELLICONSIZE
)
{
ok
(
bm
.
bmWidth
==
list_
size
.
cx
,
"got %d expected %d
\n
"
,
bm
.
bmWidth
,
list_size
.
cx
);
ok
(
bm
.
bmHeight
==
list_
size
.
cy
,
"got %d expected %d
\n
"
,
bm
.
bmHeight
,
list_size
.
cy
);
ok
(
bm
.
bmWidth
==
list_
cx
,
"got %d expected %d
\n
"
,
bm
.
bmWidth
,
list_
cx
);
ok
(
bm
.
bmHeight
==
list_
cy
,
"got %d expected %d
\n
"
,
bm
.
bmHeight
,
list_
cy
);
}
else
{
...
...
dlls/shell32/tests/shlfolder.c
View file @
87c9a0dd
...
...
@@ -3311,7 +3311,8 @@ static void test_SHCreateShellItemArray(void)
if
(
SUCCEEDED
(
hr
))
{
LPITEMIDLIST
apidl
[
5
];
UINT
done
,
numitems
,
i
;
UINT
done
;
DWORD
numitems
,
i
;
for
(
done
=
0
;
done
<
5
;
done
++
)
if
(
IEnumIDList_Next
(
peidl
,
1
,
&
apidl
[
done
],
NULL
)
!=
S_OK
)
...
...
@@ -3387,7 +3388,7 @@ static void test_SHCreateShellItemArray(void)
if
(
SUCCEEDED
(
hr
))
{
IShellItem
*
psi2
;
UINT
count
;
DWORD
count
;
hr
=
IShellItemArray_GetCount
(
psia
,
&
count
);
ok
(
hr
==
S_OK
,
"Got 0x%08x
\n
"
,
hr
);
ok
(
count
==
1
,
"Got count %d
\n
"
,
count
);
...
...
@@ -3464,7 +3465,7 @@ static void test_SHCreateShellItemArray(void)
ok
(
hr
==
S_OK
,
"Got 0x%08x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
{
UINT
count_sia
,
i
;
DWORD
count_sia
,
i
;
hr
=
IShellItemArray_GetCount
(
psia
,
&
count_sia
);
ok
(
hr
==
S_OK
,
"Got 0x%08x
\n
"
,
hr
);
ok
(
count_sia
==
count
,
"Counts differ (%d, %d)
\n
"
,
count
,
count_sia
);
...
...
@@ -3544,7 +3545,7 @@ static void test_SHCreateShellItemArray(void)
if
(
SUCCEEDED
(
hr
))
{
IShellItem
*
psi
;
UINT
count
=
0
;
DWORD
count
=
0
;
hr
=
IShellItemArray_GetCount
(
psia
,
&
count
);
ok
(
hr
==
S_OK
,
"Got 0x%08x
\n
"
,
hr
);
...
...
@@ -3597,7 +3598,7 @@ static void test_SHCreateShellItemArray(void)
if
(
SUCCEEDED
(
hr
))
{
IShellItem
*
psi
;
UINT
count
=
0
;
DWORD
count
=
0
;
hr
=
IShellItemArray_GetCount
(
psia
,
&
count
);
ok
(
hr
==
S_OK
,
"Got 0x%08x
\n
"
,
hr
);
...
...
@@ -3639,7 +3640,7 @@ static void test_SHCreateShellItemArray(void)
if
(
SUCCEEDED
(
hr
))
{
IShellItem
*
psi
;
UINT
count
=
0
;
DWORD
count
=
0
;
hr
=
IShellItemArray_GetCount
(
psia
,
&
count
);
ok
(
hr
==
S_OK
,
"Got 0x%08x
\n
"
,
hr
);
...
...
@@ -3731,7 +3732,8 @@ static void test_ShellItemArrayEnumItems(void)
{
IShellItemArray
*
psia
;
LPITEMIDLIST
apidl
[
5
];
UINT
done
,
numitems
,
i
;
UINT
done
;
DWORD
numitems
,
i
;
for
(
done
=
0
;
done
<
5
;
done
++
)
if
(
IEnumIDList_Next
(
peidl
,
1
,
&
apidl
[
done
],
NULL
)
!=
S_OK
)
...
...
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