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
7cc2806e
Commit
7cc2806e
authored
Nov 18, 2019
by
Serge Gautherie
Committed by
Alexandre Julliard
Nov 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Properly init/use icon_idx.
Signed-off-by:
Serge Gautherie
<
winehq-git_serge_180711@gautherie.fr
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
36eb51b8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
classes.c
dlls/shell32/classes.c
+6
-1
folders.c
dlls/shell32/folders.c
+1
-1
No files found.
dlls/shell32/classes.c
View file @
7cc2806e
...
...
@@ -309,7 +309,12 @@ BOOL HCR_GetDefaultIconA(LPCSTR szClass, LPSTR szDest, DWORD len, int* picon_idx
ret
=
HCR_RegGetDefaultIconA
(
hkey
,
szDest
,
len
,
picon_idx
);
RegCloseKey
(
hkey
);
}
TRACE
(
"-- %s %i
\n
"
,
szDest
,
*
picon_idx
);
if
(
ret
)
TRACE
(
"-- %s %i
\n
"
,
szDest
,
*
picon_idx
);
else
TRACE
(
"-- not found
\n
"
);
return
ret
;
}
...
...
dlls/shell32/folders.c
View file @
7cc2806e
...
...
@@ -248,7 +248,7 @@ static HRESULT WINAPI IExtractIconW_fnGetIconLocation(IExtractIconW * iface, UIN
{
static
const
WCHAR
drive
[]
=
{
'D'
,
'r'
,
'i'
,
'v'
,
'e'
,
0
};
i
nt
i
con_idx
=
-
1
;
icon_idx
=
-
1
;
if
(
_ILGetDrive
(
pSimplePidl
,
sTemp
,
MAX_PATH
))
{
...
...
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