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
c465e11a
Commit
c465e11a
authored
Apr 10, 2007
by
Aric Stewart
Committed by
Alexandre Julliard
Apr 11, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Use _ILSimpleGetTextW instead of using _ILGetTextPointer
to be able to make use of FileStructW and avoid W->A->W roundtrips if possible.
parent
a1b764e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
shlfolder.c
dlls/shell32/shlfolder.c
+5
-6
No files found.
dlls/shell32/shlfolder.c
View file @
c465e11a
...
...
@@ -222,13 +222,10 @@ static HRESULT SHELL32_CoCreateInitSF (LPCITEMIDLIST pidlRoot, LPCWSTR pathRoot,
}
if
(
pidlChild
)
{
LPCSTR
pszChild
=
_ILGetTextPointer
(
pidlChild
);
int
len
=
lstrlenW
(
ppfti
.
szTargetParsingName
);
if
(
pszChild
)
MultiByteToWideChar
(
CP_ACP
,
0
,
pszChild
,
-
1
,
ppfti
.
szTargetParsingName
+
len
,
MAX_PATH
-
len
);
else
hr
=
E_INVALIDARG
;
if
(
!
_ILSimpleGetTextW
(
pidlChild
,
ppfti
.
szTargetParsingName
+
len
,
MAX_PATH
-
len
))
hr
=
E_INVALIDARG
;
}
IPersistFolder3_InitializeEx
(
ppf
,
NULL
,
pidlAbsolute
,
&
ppfti
);
...
...
@@ -290,7 +287,9 @@ HRESULT SHELL32_BindToChild (LPCITEMIDLIST pidlRoot,
lstrcpynW
(
wszFolderPath
,
pathRoot
,
MAX_PATH
);
pwszPathTail
=
PathAddBackslashW
(
wszFolderPath
);
}
MultiByteToWideChar
(
CP_ACP
,
0
,
_ILGetTextPointer
(
pidlChild
),
-
1
,
pwszPathTail
,
MAX_PATH
-
(
int
)(
pwszPathTail
-
wszFolderPath
));
_ILSimpleGetTextW
(
pidlChild
,
pwszPathTail
,
MAX_PATH
-
(
int
)(
pwszPathTail
-
wszFolderPath
));
if
(
SHELL32_GetCustomFolderAttributeFromPath
(
wszFolderPath
,
wszDotShellClassInfo
,
wszCLSID
,
wszCLSIDValue
,
CHARS_IN_GUID
))
CLSIDFromString
(
wszCLSIDValue
,
&
clsidFolder
);
...
...
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