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
e8c4dbce
Commit
e8c4dbce
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 W -> A mapping of SPFILENOTIFY_NEEDMEDIA.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
46dc6ddd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
queue.c
dlls/setupapi/queue.c
+22
-1
No files found.
dlls/setupapi/queue.c
View file @
e8c4dbce
...
...
@@ -247,7 +247,28 @@ UINT CALLBACK QUEUE_callback_WtoA( void *context, UINT notification,
break
;
case
SPFILENOTIFY_NEEDMEDIA
:
FIXME
(
"mapping for %d not implemented
\n
"
,
notification
);
{
const
SOURCE_MEDIA_W
*
mediaW
=
(
const
SOURCE_MEDIA_W
*
)
param1
;
char
path
[
MAX_PATH
];
SOURCE_MEDIA_A
mediaA
;
mediaA
.
Tagfile
=
strdupWtoA
(
mediaW
->
Tagfile
);
mediaA
.
Description
=
strdupWtoA
(
mediaW
->
Description
);
mediaA
.
SourcePath
=
strdupWtoA
(
mediaW
->
SourcePath
);
mediaA
.
SourceFile
=
strdupWtoA
(
mediaW
->
SourceFile
);
mediaA
.
Flags
=
mediaW
->
Flags
;
path
[
0
]
=
0
;
ret
=
callback_ctx
->
orig_handler
(
callback_ctx
->
orig_context
,
notification
,
(
UINT_PTR
)
&
mediaA
,
(
UINT_PTR
)
&
path
);
MultiByteToWideChar
(
CP_ACP
,
0
,
path
,
-
1
,
(
WCHAR
*
)
param2
,
MAX_PATH
);
heap_free
((
char
*
)
mediaA
.
Tagfile
);
heap_free
((
char
*
)
mediaA
.
Description
);
heap_free
((
char
*
)
mediaA
.
SourcePath
);
heap_free
((
char
*
)
mediaA
.
SourceFile
);
break
;
}
case
SPFILENOTIFY_STARTQUEUE
:
case
SPFILENOTIFY_ENDQUEUE
:
case
SPFILENOTIFY_STARTSUBQUEUE
:
...
...
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