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
f063d043
Commit
f063d043
authored
Feb 26, 2001
by
David Grant
Committed by
Alexandre Julliard
Feb 26, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added (partial) support for FO_COPY and FO_DELETE.
parent
8f73cd14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
1 deletion
+47
-1
shlfileop.c
dlls/shell32/shlfileop.c
+47
-1
No files found.
dlls/shell32/shlfileop.c
View file @
f063d043
...
...
@@ -4,6 +4,7 @@
#include <string.h>
#include "debugtools.h"
#include "shellapi.h"
#include "shlwapi.h"
#include "shlobj.h"
#include "shresdef.h"
...
...
@@ -154,7 +155,52 @@ BOOL WINAPI Win32DeleteFile(LPSTR fName)
*/
DWORD
WINAPI
SHFileOperationA
(
LPSHFILEOPSTRUCTA
lpFileOp
)
{
FIXME
(
"(%p):stub.
\n
"
,
lpFileOp
);
LPSTR
pFrom
=
(
LPSTR
)
lpFileOp
->
pFrom
;
LPSTR
pTo
=
(
LPSTR
)
lpFileOp
->
pTo
;
LPSTR
pTempTo
;
switch
(
lpFileOp
->
wFunc
)
{
case
FO_COPY
:
TRACE
(
"File Copy:
\n
"
);
while
(
1
)
{
if
(
!
pFrom
[
0
])
break
;
if
(
!
pTo
[
0
])
break
;
TRACE
(
" From='%s' To='%s'
\n
"
,
pFrom
,
pTo
);
pTempTo
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
pTo
)
+
1
);
if
(
pTempTo
)
{
strcpy
(
pTempTo
,
pTo
);
PathRemoveFileSpecA
(
pTempTo
);
TRACE
(
" Creating Directory '%s'
\n
"
,
pTempTo
);
SHCreateDirectory
(
NULL
,
pTempTo
);
HeapFree
(
GetProcessHeap
(),
0
,
pTempTo
);
}
CopyFileA
(
pFrom
,
pTo
,
FALSE
);
pFrom
+=
strlen
(
pFrom
)
+
1
;
pTo
+=
strlen
(
pTo
)
+
1
;
}
TRACE
(
"Setting AnyOpsAborted=FALSE
\n
"
);
lpFileOp
->
fAnyOperationsAborted
=
FALSE
;
return
0
;
case
FO_DELETE
:
TRACE
(
"File Delete:
\n
"
);
while
(
1
)
{
if
(
!
pFrom
[
0
])
break
;
TRACE
(
" File='%s'
\n
"
,
pFrom
);
DeleteFileA
(
pFrom
);
pFrom
+=
strlen
(
pFrom
)
+
1
;
}
TRACE
(
"Setting AnyOpsAborted=FALSE
\n
"
);
lpFileOp
->
fAnyOperationsAborted
=
FALSE
;
return
0
;
default:
FIXME
(
"Unhandled shell file operation %d
\n
"
,
lpFileOp
->
wFunc
);
}
return
1
;
}
...
...
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