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
a83173ce
Commit
a83173ce
authored
Mar 10, 2001
by
James Juran
Committed by
Alexandre Julliard
Mar 10, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement SHGetFileInfoW by calling SHGetFileInfoA.
parent
a9c88905
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
shell32_main.c
dlls/shell32/shell32_main.c
+20
-3
No files found.
dlls/shell32/shell32_main.c
View file @
a83173ce
...
...
@@ -317,9 +317,26 @@ DWORD WINAPI SHGetFileInfoA(LPCSTR path,DWORD dwFileAttributes,
DWORD
WINAPI
SHGetFileInfoW
(
LPCWSTR
path
,
DWORD
dwFileAttributes
,
SHFILEINFOW
*
psfi
,
UINT
sizeofpsfi
,
UINT
flags
)
{
FIXME
(
"(%s,0x%lx,%p,0x%x,0x%x)
\n
"
,
debugstr_w
(
path
),
dwFileAttributes
,
psfi
,
sizeofpsfi
,
flags
);
return
0
;
{
INT
len
;
LPSTR
temppath
;
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
);
WideCharToMultiByte
(
CP_ACP
,
0
,
psfi
->
szDisplayName
,
-
1
,
temppsfi
.
szDisplayName
,
sizeof
(
temppsfi
.
szDisplayName
),
NULL
,
NULL
);
WideCharToMultiByte
(
CP_ACP
,
0
,
psfi
->
szTypeName
,
-
1
,
temppsfi
.
szTypeName
,
sizeof
(
temppsfi
.
szTypeName
),
NULL
,
NULL
);
ret
=
SHGetFileInfoA
(
temppath
,
dwFileAttributes
,
&
temppsfi
,
sizeof
(
temppsfi
),
flags
);
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