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
c4747f46
Commit
c4747f46
authored
Oct 28, 2014
by
André Hentschel
Committed by
Alexandre Julliard
Oct 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Remove duplicate code (PVS-Studio).
parent
9b810cd6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
18 deletions
+3
-18
filedlg.c
dlls/comdlg32/filedlg.c
+3
-18
No files found.
dlls/comdlg32/filedlg.c
View file @
c4747f46
...
...
@@ -3270,7 +3270,6 @@ static LRESULT FILEDLG95_LOOKIN_DrawItem(LPDRAWITEMSTRUCT pDIStruct)
int
iIndentation
;
TEXTMETRICW
tm
;
LPSFOLDER
tmpFolder
;
LookInInfos
*
liInfos
=
GetPropA
(
pDIStruct
->
hwndItem
,
LookInInfosStr
);
UINT
shgfi_flags
=
SHGFI_PIDL
|
SHGFI_OPENICON
|
SHGFI_SYSICONINDEX
|
SHGFI_DISPLAYNAME
;
UINT
icon_width
,
icon_height
;
...
...
@@ -3293,16 +3292,8 @@ static LRESULT FILEDLG95_LOOKIN_DrawItem(LPDRAWITEMSTRUCT pDIStruct)
shgfi_flags
|=
SHGFI_SMALLICON
;
}
if
(
pDIStruct
->
itemID
==
liInfos
->
uSelectedItem
)
{
ilItemImage
=
(
HIMAGELIST
)
SHGetFileInfoW
((
LPCWSTR
)
tmpFolder
->
pidlItem
,
0
,
&
sfi
,
sizeof
(
sfi
),
shgfi_flags
);
}
else
{
ilItemImage
=
(
HIMAGELIST
)
SHGetFileInfoW
((
LPCWSTR
)
tmpFolder
->
pidlItem
,
0
,
&
sfi
,
sizeof
(
sfi
),
shgfi_flags
);
}
ilItemImage
=
(
HIMAGELIST
)
SHGetFileInfoW
((
LPCWSTR
)
tmpFolder
->
pidlItem
,
0
,
&
sfi
,
sizeof
(
sfi
),
shgfi_flags
);
/* Is this item selected ? */
if
(
pDIStruct
->
itemState
&
ODS_SELECTED
)
...
...
@@ -3320,16 +3311,10 @@ static LRESULT FILEDLG95_LOOKIN_DrawItem(LPDRAWITEMSTRUCT pDIStruct)
/* Do not indent item if drawing in the edit of the combo */
if
(
pDIStruct
->
itemState
&
ODS_COMBOBOXEDIT
)
{
iIndentation
=
0
;
ilItemImage
=
(
HIMAGELIST
)
SHGetFileInfoW
((
LPCWSTR
)
tmpFolder
->
pidlItem
,
0
,
&
sfi
,
sizeof
(
sfi
),
shgfi_flags
);
}
else
{
iIndentation
=
tmpFolder
->
m_iIndent
;
}
/* Draw text and icon */
/* Initialise the icon display area */
...
...
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