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
7cf87c52
Commit
7cf87c52
authored
Jan 10, 2003
by
Juergen Schmied
Committed by
Alexandre Julliard
Jan 10, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed crash in winamp reported by Andreas Mohr.
parent
799e6ce6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
shell32_main.c
dlls/shell32/shell32_main.c
+9
-5
No files found.
dlls/shell32/shell32_main.c
View file @
7cf87c52
...
...
@@ -476,9 +476,14 @@ DWORD WINAPI SHGetFileInfoW(LPCWSTR path,DWORD dwFileAttributes,
DWORD
ret
;
SHFILEINFOA
temppsfi
;
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
path
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
temppath
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
WideCharToMultiByte
(
CP_ACP
,
0
,
path
,
-
1
,
temppath
,
len
,
NULL
,
NULL
);
if
(
flags
&
SHGFI_PIDL
)
{
/* path contains a pidl */
temppath
=
(
LPSTR
)
path
;
}
else
{
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
path
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
temppath
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
WideCharToMultiByte
(
CP_ACP
,
0
,
path
,
-
1
,
temppath
,
len
,
NULL
,
NULL
);
}
if
(
flags
&
SHGFI_ATTR_SPECIFIED
)
temppsfi
.
dwAttributes
=
psfi
->
dwAttributes
;
...
...
@@ -496,8 +501,7 @@ DWORD WINAPI SHGetFileInfoW(LPCWSTR path,DWORD dwFileAttributes,
if
(
flags
&
SHGFI_TYPENAME
)
MultiByteToWideChar
(
CP_ACP
,
0
,
temppsfi
.
szTypeName
,
-
1
,
psfi
->
szTypeName
,
sizeof
(
psfi
->
szTypeName
));
HeapFree
(
GetProcessHeap
(),
0
,
temppath
);
if
(
!
(
flags
&
SHGFI_PIDL
))
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