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
1032fdc5
Commit
1032fdc5
authored
Jul 18, 2005
by
Michael Jung
Committed by
Alexandre Julliard
Jul 18, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use CP_UNIXCP instead of CP_ACP when converting paths (Pointed out by
Troy Rollo).
parent
03f36e6d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
shfldr_unixfs.c
dlls/shell32/shfldr_unixfs.c
+6
-6
No files found.
dlls/shell32/shfldr_unixfs.c
View file @
1032fdc5
...
...
@@ -397,7 +397,7 @@ static BOOL UNIXFS_path_to_pidl(UnixFolder *pUnixFolder, const WCHAR *path, LPIT
else
if
((
pUnixFolder
->
m_dwPathMode
==
PATHMODE_UNIX
)
&&
(
path
[
0
]
==
'/'
))
{
/* Absolute unix path. Just convert to ANSI. */
WideCharToMultiByte
(
CP_
A
CP
,
0
,
path
,
-
1
,
szCompletePath
,
FILENAME_MAX
,
NULL
,
NULL
);
WideCharToMultiByte
(
CP_
UNIX
CP
,
0
,
path
,
-
1
,
szCompletePath
,
FILENAME_MAX
,
NULL
,
NULL
);
pNextPathElement
=
szCompletePath
;
}
else
...
...
@@ -405,7 +405,7 @@ static BOOL UNIXFS_path_to_pidl(UnixFolder *pUnixFolder, const WCHAR *path, LPIT
/* Relative dos or unix path. Concat with this folder's path */
int
cBasePathLen
=
strlen
(
pUnixFolder
->
m_pszPath
);
memcpy
(
szCompletePath
,
pUnixFolder
->
m_pszPath
,
cBasePathLen
);
WideCharToMultiByte
(
CP_
A
CP
,
0
,
path
,
-
1
,
szCompletePath
+
cBasePathLen
,
WideCharToMultiByte
(
CP_
UNIX
CP
,
0
,
path
,
-
1
,
szCompletePath
+
cBasePathLen
,
FILENAME_MAX
-
cBasePathLen
,
NULL
,
NULL
);
pNextPathElement
=
szCompletePath
+
cBasePathLen
-
1
;
...
...
@@ -855,11 +855,11 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_SetNameOf(IShellFolder2* iface, H
/* build destination path */
if
(
uFlags
&
SHGDN_FORPARSING
)
{
/* absolute path in lpszName */
WideCharToMultiByte
(
CP_
A
CP
,
0
,
lpszName
,
-
1
,
szDest
,
FILENAME_MAX
,
NULL
,
NULL
);
WideCharToMultiByte
(
CP_
UNIX
CP
,
0
,
lpszName
,
-
1
,
szDest
,
FILENAME_MAX
,
NULL
,
NULL
);
}
else
{
WCHAR
wszSrcRelative
[
MAX_PATH
];
memcpy
(
szDest
,
This
->
m_pszPath
,
cBasePathLen
);
WideCharToMultiByte
(
CP_
A
CP
,
0
,
lpszName
,
-
1
,
szDest
+
cBasePathLen
,
WideCharToMultiByte
(
CP_
UNIX
CP
,
0
,
lpszName
,
-
1
,
szDest
+
cBasePathLen
,
FILENAME_MAX
-
cBasePathLen
,
NULL
,
NULL
);
/* uFlags is SHGDN_FOREDITING of SHGDN_FORADDRESSBAR. If the filename's
...
...
@@ -884,7 +884,7 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_SetNameOf(IShellFolder2* iface, H
/* Build a pidl for the path of the renamed file */
if
(
!
GetFullPathNameA
(
szDest
,
MAX_PATH
,
szDosDest
,
NULL
)
||
!
MultiByteToWideChar
(
CP_
A
CP
,
0
,
szDosDest
,
-
1
,
wszDosDest
,
MAX_PATH
)
||
!
MultiByteToWideChar
(
CP_
UNIX
CP
,
0
,
szDosDest
,
-
1
,
wszDosDest
,
MAX_PATH
)
||
!
UNIXFS_path_to_pidl
(
This
,
wszDosDest
,
&
pidlDest
))
{
rename
(
szDest
,
szSrc
);
/* Undo the renaming */
...
...
@@ -1266,7 +1266,7 @@ static HRESULT WINAPI UnixFolder_ISFHelper_AddFolder(ISFHelper* iface, HWND hwnd
WCHAR
wszName
[
MAX_PATH
];
/* Inform the shell */
MultiByteToWideChar
(
CP_
A
CP
,
0
,
pszName
,
-
1
,
wszName
,
MAX_PATH
);
MultiByteToWideChar
(
CP_
UNIX
CP
,
0
,
pszName
,
-
1
,
wszName
,
MAX_PATH
);
if
(
UNIXFS_path_to_pidl
(
This
,
wszName
,
&
pidlRelative
))
{
LPITEMIDLIST
pidlAbsolute
=
ILCombine
(
This
->
m_pidlLocation
,
pidlRelative
);
if
(
ppidlOut
)
...
...
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