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
27a06a5d
Commit
27a06a5d
authored
Sep 28, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Sep 29, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Cast-qual warnings fix.
parent
dcd5e173
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
shell32_main.c
dlls/shell32/shell32_main.c
+7
-6
No files found.
dlls/shell32/shell32_main.c
View file @
27a06a5d
...
...
@@ -634,29 +634,31 @@ DWORD_PTR WINAPI SHGetFileInfoA(LPCSTR path,DWORD dwFileAttributes,
UINT
flags
)
{
INT
len
;
LPWSTR
temppath
;
LPWSTR
temppath
=
NULL
;
LPCWSTR
pathW
;
DWORD
ret
;
SHFILEINFOW
temppsfi
;
if
(
flags
&
SHGFI_PIDL
)
{
/* path contains a pidl */
temppath
=
(
LPWSTR
)
path
;
pathW
=
(
LPCWSTR
)
path
;
}
else
{
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
path
,
-
1
,
NULL
,
0
);
temppath
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
path
,
-
1
,
temppath
,
len
);
pathW
=
temppath
;
}
if
(
psfi
&&
(
flags
&
SHGFI_ATTR_SPECIFIED
))
temppsfi
.
dwAttributes
=
psfi
->
dwAttributes
;
if
(
psfi
==
NULL
)
ret
=
SHGetFileInfoW
(
temppath
,
dwFileAttributes
,
NULL
,
sizeof
(
temppsfi
),
flags
);
ret
=
SHGetFileInfoW
(
pathW
,
dwFileAttributes
,
NULL
,
sizeof
(
temppsfi
),
flags
);
else
ret
=
SHGetFileInfoW
(
temppath
,
dwFileAttributes
,
&
temppsfi
,
sizeof
(
temppsfi
),
flags
);
ret
=
SHGetFileInfoW
(
pathW
,
dwFileAttributes
,
&
temppsfi
,
sizeof
(
temppsfi
),
flags
);
if
(
psfi
)
{
...
...
@@ -678,8 +680,7 @@ DWORD_PTR WINAPI SHGetFileInfoA(LPCSTR path,DWORD dwFileAttributes,
}
}
if
(
!
(
flags
&
SHGFI_PIDL
))
HeapFree
(
GetProcessHeap
(),
0
,
temppath
);
HeapFree
(
GetProcessHeap
(),
0
,
temppath
);
return
ret
;
}
...
...
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