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
23c33911
Commit
23c33911
authored
Sep 14, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Don't store the short file name in the PIDL.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1dcd1fe6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
pidl.c
dlls/shell32/pidl.c
+3
-8
No files found.
dlls/shell32/pidl.c
View file @
23c33911
...
...
@@ -1708,8 +1708,7 @@ LPITEMIDLIST _ILCreateGuidFromStrW(LPCWSTR szGUID)
LPITEMIDLIST
_ILCreateFromFindDataW
(
const
WIN32_FIND_DATAW
*
wfd
)
{
char
buff
[
MAX_PATH
+
14
+
1
];
/* see WIN32_FIND_DATA */
DWORD
len
,
len1
,
wlen
,
alen
;
DWORD
wlen
,
alen
;
LPITEMIDLIST
pidl
;
PIDLTYPE
type
;
...
...
@@ -1718,13 +1717,9 @@ LPITEMIDLIST _ILCreateFromFindDataW( const WIN32_FIND_DATAW *wfd )
TRACE
(
"(%s, %s)
\n
"
,
debugstr_w
(
wfd
->
cAlternateFileName
),
debugstr_w
(
wfd
->
cFileName
));
/* prepare buffer with both names */
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
wfd
->
cFileName
,
-
1
,
buff
,
MAX_PATH
,
NULL
,
NULL
);
len1
=
WideCharToMultiByte
(
CP_ACP
,
0
,
wfd
->
cAlternateFileName
,
-
1
,
buff
+
len
,
sizeof
(
buff
)
-
len
,
NULL
,
NULL
);
alen
=
len
+
len1
;
type
=
(
wfd
->
dwFileAttributes
&
FILE_ATTRIBUTE_DIRECTORY
)
?
PT_FOLDER
:
PT_VALUE
;
alen
=
WideCharToMultiByte
(
CP_ACP
,
0
,
wfd
->
cFileName
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
wlen
=
lstrlenW
(
wfd
->
cFileName
)
+
1
;
pidl
=
_ILAlloc
(
type
,
FIELD_OFFSET
(
FileStruct
,
szNames
[
alen
+
(
alen
&
1
)])
+
FIELD_OFFSET
(
FileStructW
,
wszName
[
wlen
])
+
sizeof
(
WORD
));
...
...
@@ -1738,7 +1733,7 @@ LPITEMIDLIST _ILCreateFromFindDataW( const WIN32_FIND_DATAW *wfd )
FileTimeToDosDateTime
(
&
wfd
->
ftLastWriteTime
,
&
fs
->
uFileDate
,
&
fs
->
uFileTime
);
fs
->
dwFileSize
=
wfd
->
nFileSizeLow
;
fs
->
uFileAttribs
=
wfd
->
dwFileAttributes
;
memcpy
(
fs
->
szNames
,
buff
,
alen
);
WideCharToMultiByte
(
CP_ACP
,
0
,
wfd
->
cFileName
,
-
1
,
fs
->
szNames
,
alen
,
NULL
,
NULL
);
fsw
=
(
FileStructW
*
)(
pData
->
u
.
file
.
szNames
+
alen
+
(
alen
&
0x1
));
fsw
->
cbLen
=
FIELD_OFFSET
(
FileStructW
,
wszName
[
wlen
])
+
sizeof
(
WORD
);
...
...
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