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
d183986a
Commit
d183986a
authored
Feb 02, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Use correct integral type.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fd8d0bab
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
8 deletions
+12
-8
iconcache.c
dlls/shell32/iconcache.c
+7
-3
shellpath.c
dlls/shell32/shellpath.c
+4
-4
shlview.c
dlls/shell32/shlview.c
+1
-1
No files found.
dlls/shell32/iconcache.c
View file @
d183986a
...
...
@@ -337,9 +337,13 @@ static INT SIC_IconAppend (const WCHAR *sourcefile, INT src_index, HICON *hicons
static
BOOL
get_imagelist_icon_size
(
int
list
,
SIZE
*
size
)
{
int
cx
,
cy
;
if
(
list
<
0
||
list
>=
ARRAY_SIZE
(
shell_imagelists
))
return
FALSE
;
return
ImageList_GetIconSize
(
shell_imagelists
[
list
],
&
size
->
cx
,
&
size
->
cy
);
if
(
!
ImageList_GetIconSize
(
shell_imagelists
[
list
],
&
cx
,
&
cy
))
return
FALSE
;
size
->
cx
=
cx
;
size
->
cy
=
cy
;
return
TRUE
;
}
/****************************************************************************
...
...
@@ -358,8 +362,8 @@ static INT SIC_LoadIcon (const WCHAR *sourcefile, INT index, DWORD flags)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
hicons
);
i
++
)
{
get_imagelist_icon_size
(
i
,
&
size
);
if
(
!
PrivateExtractIconsW
(
sourcefile
,
index
,
size
.
cx
,
size
.
cy
,
&
hicons
[
i
],
0
,
1
,
0
))
if
(
!
get_imagelist_icon_size
(
i
,
&
size
)
||
!
PrivateExtractIconsW
(
sourcefile
,
index
,
size
.
cx
,
size
.
cy
,
&
hicons
[
i
],
0
,
1
,
0
))
WARN
(
"Failed to load icon %d from %s.
\n
"
,
index
,
debugstr_w
(
sourcefile
));
if
(
!
hicons
[
i
])
goto
fail
;
}
...
...
dlls/shell32/shellpath.c
View file @
d183986a
...
...
@@ -3677,7 +3677,7 @@ static HRESULT get_known_folder_redirection_place(
{
HRESULT
hr
;
LPWSTR
lpRegistryPath
=
NULL
;
KF_CATEGORY
category
;
DWORD
category
;
/* first, get known folder's category */
hr
=
get_known_folder_registry_path
(
rfid
,
NULL
,
&
lpRegistryPath
);
...
...
@@ -3918,7 +3918,7 @@ static HRESULT WINAPI knownfolder_GetCategory(
hr
=
E_FAIL
;
if
(
SUCCEEDED
(
hr
))
hr
=
get_known_folder_dword
(
knownfolder
->
registryPath
,
L"Category"
,
pCategory
);
hr
=
get_known_folder_dword
(
knownfolder
->
registryPath
,
L"Category"
,
(
DWORD
*
)
pCategory
);
return
hr
;
}
...
...
@@ -3943,7 +3943,7 @@ static HRESULT get_known_folder_path(
DWORD
dwSize
,
dwType
;
WCHAR
path
[
MAX_PATH
]
=
{
0
};
WCHAR
parentGuid
[
39
];
KF_CATEGORY
category
;
DWORD
category
;
LPWSTR
parentRegistryPath
,
parentPath
;
HKEY
hRedirectionRootKey
=
NULL
;
...
...
@@ -4138,7 +4138,7 @@ static HRESULT WINAPI knownfolder_GetFolderDefinition(
ZeroMemory
(
pKFD
,
sizeof
(
*
pKFD
));
/* required fields */
hr
=
get_known_folder_dword
(
knownfolder
->
registryPath
,
L"Category"
,
&
pKFD
->
category
);
hr
=
get_known_folder_dword
(
knownfolder
->
registryPath
,
L"Category"
,
(
DWORD
*
)
&
pKFD
->
category
);
if
(
FAILED
(
hr
))
return
hr
;
...
...
dlls/shell32/shlview.c
View file @
d183986a
...
...
@@ -3282,7 +3282,7 @@ static HRESULT WINAPI IShellFolderView_fnGetSelectedCount(
if
(
FAILED
(
hr
))
return
hr
;
hr
=
IShellItemArray_GetCount
(
selection
,
count
);
hr
=
IShellItemArray_GetCount
(
selection
,
(
DWORD
*
)
count
);
IShellItemArray_Release
(
selection
);
return
hr
;
}
...
...
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