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
9e80570a
Commit
9e80570a
authored
Mar 21, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Remove a useless debug switch, fix prototype.
parent
6a0bdddf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
dialogs.c
dlls/shell32/dialogs.c
+1
-1
shell32_main.c
dlls/shell32/shell32_main.c
+4
-7
No files found.
dlls/shell32/dialogs.c
View file @
9e80570a
...
...
@@ -60,7 +60,7 @@ static void FillList (HWND, char *, BOOL) ;
* PickIconDlg [SHELL32.62]
*
*/
BOOL
WINAPI
PickIconDlg
(
INT
WINAPI
PickIconDlg
(
HWND
hwndOwner
,
LPSTR
lpstrFile
,
DWORD
nMaxFile
,
...
...
dlls/shell32/shell32_main.c
View file @
9e80570a
...
...
@@ -52,7 +52,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(shell);
extern
const
char
*
const
SHELL_Authors
[];
#define MORE_DEBUG 1
/*************************************************************************
* CommandLineToArgvW [SHELL32.@]
*
...
...
@@ -607,7 +606,7 @@ DWORD_PTR WINAPI SHGetFileInfoW(LPCWSTR path,DWORD dwFileAttributes,
GetSystemMetrics
(
SM_CXICON
),
GetSystemMetrics
(
SM_CYICON
),
&
psfi
->
hIcon
,
0
,
1
,
0
);
if
(
ret
!=
0
&&
ret
!=
0xFFFFFFFF
)
if
(
ret
!=
0
&&
ret
!=
(
UINT
)
-
1
)
{
IconNotYetLoaded
=
FALSE
;
psfi
->
iIcon
=
icon_idx
;
...
...
@@ -653,11 +652,9 @@ DWORD_PTR WINAPI SHGetFileInfoW(LPCWSTR path,DWORD dwFileAttributes,
SHFree
(
pidlLast
);
#ifdef MORE_DEBUG
TRACE
(
"icon=%p index=0x%08x attr=0x%08x name=%s type=%s ret=0x%08lx
\n
"
,
psfi
->
hIcon
,
psfi
->
iIcon
,
psfi
->
dwAttributes
,
debugstr_w
(
psfi
->
szDisplayName
),
debugstr_w
(
psfi
->
szTypeName
),
ret
);
#endif
return
ret
;
}
...
...
@@ -777,17 +774,17 @@ HICON WINAPI ExtractIconW(HINSTANCE hInstance, LPCWSTR lpszFile, UINT nIconIndex
TRACE
(
"%p %s %d
\n
"
,
hInstance
,
debugstr_w
(
lpszFile
),
nIconIndex
);
if
(
nIconIndex
==
0xFFFFFFFF
)
if
(
nIconIndex
==
(
UINT
)
-
1
)
{
ret
=
PrivateExtractIconsW
(
lpszFile
,
0
,
cx
,
cy
,
NULL
,
NULL
,
0
,
LR_DEFAULTCOLOR
);
if
(
ret
!=
0xFFFFFFFF
&&
ret
)
if
(
ret
!=
(
UINT
)
-
1
&&
ret
)
return
(
HICON
)(
UINT_PTR
)
ret
;
return
NULL
;
}
else
ret
=
PrivateExtractIconsW
(
lpszFile
,
nIconIndex
,
cx
,
cy
,
&
hIcon
,
NULL
,
1
,
LR_DEFAULTCOLOR
);
if
(
ret
==
0xFFFFFFFF
)
if
(
ret
==
(
UINT
)
-
1
)
return
(
HICON
)
1
;
else
if
(
ret
>
0
&&
hIcon
)
return
hIcon
;
...
...
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