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
e5d9b2f1
Commit
e5d9b2f1
authored
Aug 24, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Aug 24, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Use kernel functions in preference to libwine ones.
parent
9949a3a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
17 deletions
+16
-17
shell32_main.h
dlls/shell32/shell32_main.h
+2
-2
shlfileop.c
dlls/shell32/shlfileop.c
+14
-15
No files found.
dlls/shell32/shell32_main.h
View file @
e5d9b2f1
...
...
@@ -200,8 +200,8 @@ inline static void __SHCloneStrWtoA(char ** target, const WCHAR * source)
inline
static
void
__SHCloneStrW
(
WCHAR
**
target
,
const
WCHAR
*
source
)
{
*
target
=
SHAlloc
(
(
strlenW
(
source
)
+
1
)
*
sizeof
(
WCHAR
)
);
strcpyW
(
*
target
,
source
);
*
target
=
SHAlloc
(
(
l
strlenW
(
source
)
+
1
)
*
sizeof
(
WCHAR
)
);
l
strcpyW
(
*
target
,
source
);
}
inline
static
WCHAR
*
__SHCloneStrAtoW
(
WCHAR
**
target
,
const
char
*
source
)
...
...
dlls/shell32/shlfileop.c
View file @
e5d9b2f1
...
...
@@ -40,7 +40,6 @@
#include "shlwapi.h"
#include "shell32_main.h"
#include "undocshell.h"
#include "wine/unicode.h"
#include "wine/debug.h"
#include "xdg.h"
...
...
@@ -781,11 +780,11 @@ static inline void grow_list(FILE_LIST *list)
*/
static
void
add_file_to_entry
(
FILE_ENTRY
*
feFile
,
LPWSTR
szFile
)
{
DWORD
dwLen
=
strlenW
(
szFile
)
+
1
;
DWORD
dwLen
=
l
strlenW
(
szFile
)
+
1
;
LPWSTR
ptr
;
feFile
->
szFullPath
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dwLen
*
sizeof
(
WCHAR
));
strcpyW
(
feFile
->
szFullPath
,
szFile
);
l
strcpyW
(
feFile
->
szFullPath
,
szFile
);
ptr
=
StrRChrW
(
szFile
,
NULL
,
'\\'
);
if
(
ptr
)
...
...
@@ -794,9 +793,9 @@ static void add_file_to_entry(FILE_ENTRY *feFile, LPWSTR szFile)
feFile
->
szDirectory
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dwLen
*
sizeof
(
WCHAR
));
lstrcpynW
(
feFile
->
szDirectory
,
szFile
,
dwLen
);
dwLen
=
strlenW
(
feFile
->
szFullPath
)
-
dwLen
+
1
;
dwLen
=
l
strlenW
(
feFile
->
szFullPath
)
-
dwLen
+
1
;
feFile
->
szFilename
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dwLen
*
sizeof
(
WCHAR
));
strcpyW
(
feFile
->
szFilename
,
ptr
+
1
);
/* skip over backslash */
l
strcpyW
(
feFile
->
szFilename
,
ptr
+
1
);
/* skip over backslash */
}
feFile
->
bFromWildcard
=
FALSE
;
}
...
...
@@ -809,11 +808,11 @@ static LPWSTR wildcard_to_file(LPWSTR szWildCard, LPWSTR szFileName)
ptr
=
StrRChrW
(
szWildCard
,
NULL
,
'\\'
);
dwDirLen
=
ptr
-
szWildCard
+
1
;
dwFullLen
=
dwDirLen
+
strlenW
(
szFileName
)
+
1
;
dwFullLen
=
dwDirLen
+
l
strlenW
(
szFileName
)
+
1
;
szFullPath
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dwFullLen
*
sizeof
(
WCHAR
));
lstrcpynW
(
szFullPath
,
szWildCard
,
dwDirLen
+
1
);
strcatW
(
szFullPath
,
szFileName
);
l
strcatW
(
szFullPath
,
szFileName
);
return
szFullPath
;
}
...
...
@@ -878,7 +877,7 @@ static HRESULT parse_file_list(FILE_LIST *flList, LPCWSTR szFiles)
}
else
{
strcpyW
(
szCurFile
,
ptr
);
l
strcpyW
(
szCurFile
,
ptr
);
flList
->
feFiles
[
i
].
bFromRelative
=
FALSE
;
}
...
...
@@ -900,7 +899,7 @@ static HRESULT parse_file_list(FILE_LIST *flList, LPCWSTR szFiles)
}
/* advance to the next string */
ptr
+=
strlenW
(
ptr
)
+
1
;
ptr
+=
l
strlenW
(
ptr
)
+
1
;
i
++
;
}
flList
->
dwNumFiles
=
i
;
...
...
@@ -939,13 +938,13 @@ static void copy_dir_to_dir(LPSHFILEOPSTRUCTW lpFileOp, FILE_ENTRY *feFrom, LPWS
if
(
PathFileExistsW
(
szDestPath
))
PathCombineW
(
szTo
,
szDestPath
,
feFrom
->
szFilename
);
else
strcpyW
(
szTo
,
szDestPath
);
l
strcpyW
(
szTo
,
szDestPath
);
szTo
[
strlenW
(
szTo
)
+
1
]
=
'\0'
;
szTo
[
l
strlenW
(
szTo
)
+
1
]
=
'\0'
;
SHNotifyCreateDirectoryW
(
szTo
,
NULL
);
PathCombineW
(
szFrom
,
feFrom
->
szFullPath
,
wildCardFiles
);
szFrom
[
strlenW
(
szFrom
)
+
1
]
=
'\0'
;
szFrom
[
l
strlenW
(
szFrom
)
+
1
]
=
'\0'
;
memcpy
(
&
fileOp
,
lpFileOp
,
sizeof
(
fileOp
));
fileOp
.
pFrom
=
szFrom
;
...
...
@@ -1181,10 +1180,10 @@ static void move_dir_to_dir(LPSHFILEOPSTRUCTW lpFileOp, FILE_ENTRY *feFrom, LPWS
SHNotifyCreateDirectoryW
(
szDestPath
,
NULL
);
PathCombineW
(
szFrom
,
feFrom
->
szFullPath
,
wildCardFiles
);
szFrom
[
strlenW
(
szFrom
)
+
1
]
=
'\0'
;
szFrom
[
l
strlenW
(
szFrom
)
+
1
]
=
'\0'
;
strcpyW
(
szTo
,
szDestPath
);
szTo
[
strlenW
(
szDestPath
)
+
1
]
=
'\0'
;
l
strcpyW
(
szTo
,
szDestPath
);
szTo
[
l
strlenW
(
szDestPath
)
+
1
]
=
'\0'
;
memcpy
(
&
fileOp
,
lpFileOp
,
sizeof
(
fileOp
));
fileOp
.
pFrom
=
szFrom
;
...
...
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