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
e80a85a3
Commit
e80a85a3
authored
Jan 10, 2006
by
Troy Rollo
Committed by
Alexandre Julliard
Jan 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Fix bug in renaming files in the file dialogs when UNIX paths
are being used.
parent
c03b21e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
shfldr_unixfs.c
dlls/shell32/shfldr_unixfs.c
+11
-1
No files found.
dlls/shell32/shfldr_unixfs.c
View file @
e80a85a3
...
...
@@ -1266,7 +1266,17 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_SetNameOf(IShellFolder2* iface, H
return
E_FAIL
;
/* Build a pidl for the path of the renamed file */
pwszDosDest
=
wine_get_dos_file_name
(
szDest
);
if
(
This
->
m_dwPathMode
==
PATHMODE_DOS
)
{
pwszDosDest
=
wine_get_dos_file_name
(
szDest
);
}
else
{
int
len
=
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
szDest
,
-
1
,
NULL
,
0
);
pwszDosDest
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
szDest
,
-
1
,
pwszDosDest
,
len
);
}
if
(
!
pwszDosDest
||
!
UNIXFS_path_to_pidl
(
This
,
pwszDosDest
,
&
pidlDest
))
{
HeapFree
(
GetProcessHeap
(),
0
,
pwszDosDest
);
rename
(
szDest
,
szSrc
);
/* Undo the renaming */
...
...
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