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
c0a5a27c
Commit
c0a5a27c
authored
Jan 05, 2004
by
Martin Fuchs
Committed by
Alexandre Julliard
Jan 05, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct return type of SHFileOperationA/W.
parent
6518b5ca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
shlfileop.c
dlls/shell32/shlfileop.c
+6
-5
shellapi.h
include/shellapi.h
+2
-2
No files found.
dlls/shell32/shlfileop.c
View file @
c0a5a27c
...
...
@@ -723,10 +723,11 @@ DWORD SHNameTranslate(LPWSTR* wString, LPCWSTR* pWToFrom, BOOL more)
* NOTES
* exported by name
*/
DWORD
WINAPI
SHFileOperationA
(
LPSHFILEOPSTRUCTA
lpFileOp
)
int
WINAPI
SHFileOperationA
(
LPSHFILEOPSTRUCTA
lpFileOp
)
{
SHFILEOPSTRUCTW
nFileOp
=
*
((
LPSHFILEOPSTRUCTW
)
lpFileOp
);
DWORD
retCode
=
0
,
size
;
int
retCode
=
0
;
DWORD
size
;
LPWSTR
ForFree
=
NULL
,
/* we change wString in SHNameTranslate and can't use it for freeing */
wString
=
NULL
;
/* we change this in SHNameTranslate */
...
...
@@ -792,7 +793,7 @@ static const char * debug_shfileops_action( DWORD op )
*
* See SHFileOperationA
*/
DWORD
WINAPI
SHFileOperationW
(
LPSHFILEOPSTRUCTW
lpFileOp
)
int
WINAPI
SHFileOperationW
(
LPSHFILEOPSTRUCTW
lpFileOp
)
{
SHFILEOPSTRUCTW
nFileOp
=
*
(
lpFileOp
);
...
...
@@ -807,7 +808,7 @@ DWORD WINAPI SHFileOperationW(LPSHFILEOPSTRUCTW lpFileOp)
LPWSTR
pFromFile
;
LPWSTR
pToFile
=
NULL
;
LPWSTR
lpFileName
;
long
retCode
=
0
;
int
retCode
=
0
;
DWORD
ToAttr
;
DWORD
ToPathAttr
;
DWORD
FromPathAttr
;
...
...
@@ -1257,7 +1258,7 @@ shfileop_error:
{
nFileOp
.
fAnyOperationsAborted
=
TRUE
;
}
TRACE
(
"%s level=%ld AnyOpsAborted=%s ret=0x%
l
x, with %s %s%s
\n
"
,
TRACE
(
"%s level=%ld AnyOpsAborted=%s ret=0x%x, with %s %s%s
\n
"
,
debug_shfileops_action
(
FuncSwitch
),
level
,
nFileOp
.
fAnyOperationsAborted
?
"TRUE"
:
"FALSE"
,
retCode
,
debugstr_w
(
pFrom
),
pTo
?
"-> "
:
""
,
debugstr_w
(
pTo
));
...
...
include/shellapi.h
View file @
c0a5a27c
...
...
@@ -209,8 +209,8 @@ typedef struct _SHFILEOPSTRUCTW
#define SHFILEOPSTRUCT WINELIB_NAME_AW(SHFILEOPSTRUCT)
#define LPSHFILEOPSTRUCT WINELIB_NAME_AW(LPSHFILEOPSTRUCT)
DWORD
WINAPI
SHFileOperationA
(
LPSHFILEOPSTRUCTA
lpFileOp
);
DWORD
WINAPI
SHFileOperationW
(
LPSHFILEOPSTRUCTW
lpFileOp
);
int
WINAPI
SHFileOperationA
(
LPSHFILEOPSTRUCTA
lpFileOp
);
int
WINAPI
SHFileOperationW
(
LPSHFILEOPSTRUCTW
lpFileOp
);
#define SHFileOperation WINELIB_NAME_AW(SHFileOperation)
/******************************************
...
...
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