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
b4a5775f
Commit
b4a5775f
authored
Mar 17, 2024
by
Zhenbo Li
Committed by
Alexandre Julliard
Mar 19, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Create nonexistent destination directories in FO_MOVE.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=25207
parent
19627b13
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
shlfileop.c
dlls/shell32/shlfileop.c
+4
-2
shlfileop.c
dlls/shell32/tests/shlfileop.c
+2
-2
No files found.
dlls/shell32/shlfileop.c
View file @
b4a5775f
...
...
@@ -1398,6 +1398,7 @@ static int move_files(LPSHFILEOPSTRUCTW lpFileOp, const FILE_LIST *flFrom, const
INT
mismatched
=
0
;
const
FILE_ENTRY
*
entryToMove
;
const
FILE_ENTRY
*
fileDest
;
int
ret
;
if
(
!
flFrom
->
dwNumFiles
)
return
ERROR_SUCCESS
;
...
...
@@ -1418,8 +1419,9 @@ static int move_files(LPSHFILEOPSTRUCTW lpFileOp, const FILE_LIST *flFrom, const
return
ERROR_CANCELLED
;
}
if
(
!
PathFileExistsW
(
flTo
->
feFiles
[
0
].
szDirectory
))
return
ERROR_CANCELLED
;
ret
=
SHCreateDirectoryExW
(
NULL
,
flTo
->
feFiles
[
0
].
szDirectory
,
NULL
);
if
(
ret
&&
ret
!=
ERROR_ALREADY_EXISTS
)
return
ret
;
if
(
lpFileOp
->
fFlags
&
FOF_MULTIDESTFILES
)
mismatched
=
flFrom
->
dwNumFiles
-
flTo
->
dwNumFiles
;
...
...
dlls/shell32/tests/shlfileop.c
View file @
b4a5775f
...
...
@@ -2165,8 +2165,8 @@ static void test_move(void)
shfo
.
pFrom
=
"test2.txt
\0
"
;
shfo
.
pTo
=
"dir1
\\
dir2
\\
test2.txt
\0
"
;
retval
=
SHFileOperationA
(
&
shfo
);
todo_wine
ok
(
!
retval
,
"got %ld
\n
"
,
retval
);
todo_wine
ok
(
DeleteFileA
(
"dir1
\\
dir2
\\
test2.txt"
),
"Expected dir1
\\
dir2
\\
test2.txt to exist
\n
"
);
ok
(
!
retval
,
"got %ld
\n
"
,
retval
);
ok
(
DeleteFileA
(
"dir1
\\
dir2
\\
test2.txt"
),
"Expected dir1
\\
dir2
\\
test2.txt to exist
\n
"
);
RemoveDirectoryA
(
"dir1
\\
dir2"
);
RemoveDirectoryA
(
"dir1"
);
createTestFile
(
"test2.txt"
);
...
...
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