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
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,
...
@@ -476,9 +476,14 @@ DWORD WINAPI SHGetFileInfoW(LPCWSTR path,DWORD dwFileAttributes,
DWORD
ret
;
DWORD
ret
;
SHFILEINFOA
temppsfi
;
SHFILEINFOA
temppsfi
;
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
path
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
if
(
flags
&
SHGFI_PIDL
)
{
temppath
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
/* path contains a pidl */
WideCharToMultiByte
(
CP_ACP
,
0
,
path
,
-
1
,
temppath
,
len
,
NULL
,
NULL
);
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
)
if
(
flags
&
SHGFI_ATTR_SPECIFIED
)
temppsfi
.
dwAttributes
=
psfi
->
dwAttributes
;
temppsfi
.
dwAttributes
=
psfi
->
dwAttributes
;
...
@@ -496,8 +501,7 @@ DWORD WINAPI SHGetFileInfoW(LPCWSTR path,DWORD dwFileAttributes,
...
@@ -496,8 +501,7 @@ DWORD WINAPI SHGetFileInfoW(LPCWSTR path,DWORD dwFileAttributes,
if
(
flags
&
SHGFI_TYPENAME
)
if
(
flags
&
SHGFI_TYPENAME
)
MultiByteToWideChar
(
CP_ACP
,
0
,
temppsfi
.
szTypeName
,
-
1
,
psfi
->
szTypeName
,
sizeof
(
psfi
->
szTypeName
));
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
;
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