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
466b8078
Commit
466b8078
authored
May 01, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
May 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Implement SetupQueueCopyIndirectA() on top of the W variant.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
705d3eed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
28 deletions
+27
-28
queue.c
dlls/setupapi/queue.c
+27
-28
No files found.
dlls/setupapi/queue.c
View file @
466b8078
...
...
@@ -504,36 +504,35 @@ BOOL WINAPI SetupCloseFileQueue( HSPFILEQ handle )
/***********************************************************************
* SetupQueueCopyIndirectA (SETUPAPI.@)
*/
BOOL
WINAPI
SetupQueueCopyIndirectA
(
PSP_FILE_COPY_PARAMS_A
params
)
BOOL
WINAPI
SetupQueueCopyIndirectA
(
SP_FILE_COPY_PARAMS_A
*
paramsA
)
{
struct
file_queue
*
queue
=
params
->
QueueHandle
;
struct
file_op
*
op
;
if
(
!
(
op
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
op
)
)))
return
FALSE
;
op
->
style
=
params
->
CopyStyle
;
op
->
src_root
=
strdupAtoW
(
params
->
SourceRootPath
);
op
->
src_path
=
strdupAtoW
(
params
->
SourcePath
);
op
->
src_file
=
strdupAtoW
(
params
->
SourceFilename
);
op
->
src_descr
=
strdupAtoW
(
params
->
SourceDescription
);
op
->
src_tag
=
strdupAtoW
(
params
->
SourceTagfile
);
op
->
dst_path
=
strdupAtoW
(
params
->
TargetDirectory
);
op
->
dst_file
=
strdupAtoW
(
params
->
TargetFilename
);
/* some defaults */
if
(
!
op
->
src_file
)
op
->
src_file
=
op
->
dst_file
;
if
(
params
->
LayoutInf
)
{
get_src_file_info
(
params
->
LayoutInf
,
op
);
if
(
!
op
->
dst_path
)
op
->
dst_path
=
get_destination_dir
(
params
->
LayoutInf
,
op
->
dst_file
);
}
TRACE
(
"root=%s path=%s file=%s -> dir=%s file=%s descr=%s tag=%s
\n
"
,
debugstr_w
(
op
->
src_root
),
debugstr_w
(
op
->
src_path
),
debugstr_w
(
op
->
src_file
),
debugstr_w
(
op
->
dst_path
),
debugstr_w
(
op
->
dst_file
),
debugstr_w
(
op
->
src_descr
),
debugstr_w
(
op
->
src_tag
)
);
SP_FILE_COPY_PARAMS_W
paramsW
;
BOOL
ret
;
queue_file_op
(
&
queue
->
copy_queue
,
op
);
return
TRUE
;
paramsW
.
cbSize
=
sizeof
(
paramsW
);
paramsW
.
QueueHandle
=
paramsA
->
QueueHandle
;
paramsW
.
SourceRootPath
=
strdupAtoW
(
paramsA
->
SourceRootPath
);
paramsW
.
SourcePath
=
strdupAtoW
(
paramsA
->
SourcePath
);
paramsW
.
SourceFilename
=
strdupAtoW
(
paramsA
->
SourceFilename
);
paramsW
.
SourceDescription
=
strdupAtoW
(
paramsA
->
SourceDescription
);
paramsW
.
SourceTagfile
=
strdupAtoW
(
paramsA
->
SourceTagfile
);
paramsW
.
TargetDirectory
=
strdupAtoW
(
paramsA
->
TargetDirectory
);
paramsW
.
TargetFilename
=
strdupAtoW
(
paramsA
->
TargetFilename
);
paramsW
.
CopyStyle
=
paramsA
->
CopyStyle
;
paramsW
.
LayoutInf
=
paramsA
->
LayoutInf
;
paramsW
.
SecurityDescriptor
=
strdupAtoW
(
paramsA
->
SecurityDescriptor
);
ret
=
SetupQueueCopyIndirectW
(
&
paramsW
);
heap_free
(
(
WCHAR
*
)
paramsW
.
SourceRootPath
);
heap_free
(
(
WCHAR
*
)
paramsW
.
SourcePath
);
heap_free
(
(
WCHAR
*
)
paramsW
.
SourceFilename
);
heap_free
(
(
WCHAR
*
)
paramsW
.
SourceDescription
);
heap_free
(
(
WCHAR
*
)
paramsW
.
SourceTagfile
);
heap_free
(
(
WCHAR
*
)
paramsW
.
TargetDirectory
);
heap_free
(
(
WCHAR
*
)
paramsW
.
TargetFilename
);
heap_free
(
(
WCHAR
*
)
paramsW
.
SecurityDescriptor
);
return
ret
;
}
...
...
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