mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 14:43:22 +00:00
[WINESYNC] setupapi: Make default context structure layout compatible.
wine commit id dcab5fe61bed87b291901ceff686894a64871d98 by Nikolay Sivov <nsivov@codeweavers.com>
[WINESYNC] setupapi: Remove dead code (Clang).
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
wine commit id 9edfb14c6be13f599aafe5e300986f10e6fb999d by André Hentschel <nerv@dawncrow.de>
NOTE: Already committed in ReactOS in commit cd73072e5
(r72565)
This commit is contained in:
parent
647d452a7a
commit
6994a8f76c
2 changed files with 10 additions and 5 deletions
|
@ -32,9 +32,13 @@ static const WCHAR DotSecurity[] = {'.','S','e','c','u','r','i','t','y',0};
|
|||
/* context structure for the default queue callback */
|
||||
struct default_callback_context
|
||||
{
|
||||
HWND owner;
|
||||
HWND progress;
|
||||
UINT message;
|
||||
DWORD magic;
|
||||
HWND owner;
|
||||
DWORD unk1[4];
|
||||
DWORD_PTR unk2[7];
|
||||
HWND progress;
|
||||
UINT message;
|
||||
DWORD_PTR unk3[5];
|
||||
};
|
||||
|
||||
struct file_op
|
||||
|
@ -1678,8 +1682,9 @@ PVOID WINAPI SetupInitDefaultQueueCallbackEx( HWND owner, HWND progress, UINT ms
|
|||
{
|
||||
struct default_callback_context *context;
|
||||
|
||||
if ((context = HeapAlloc( GetProcessHeap(), 0, sizeof(*context) )))
|
||||
if ((context = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*context) )))
|
||||
{
|
||||
context->magic = 0x43515053; /* "SPQC" */
|
||||
context->owner = owner;
|
||||
context->progress = progress;
|
||||
context->message = msg;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue