Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wg_parser: add wow64 func for wg_parser_connect #231

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion dlls/winegstreamer/wg_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -2274,6 +2274,24 @@ C_ASSERT(ARRAYSIZE(__wine_unix_call_funcs) == unix_wg_funcs_count);

typedef ULONG PTR32;

static NTSTATUS wow64_wg_parser_connect(void *args)
{
struct
{
wg_parser_t parser;
PTR32 uri;
UINT64 file_size;
} *params32 = args;
struct wg_parser_connect_params params =
{
.parser = params32->parser,
.file_size = params32->file_size,
.uri = ULongToPtr(params32->uri),
};

return wg_parser_connect(&params);
}

static NTSTATUS wow64_wg_parser_push_data(void *args) {
struct
{
Expand Down Expand Up @@ -2640,7 +2658,7 @@ const unixlib_entry_t __wine_unix_call_wow64_funcs[] =
X(wg_parser_create),
X(wg_parser_destroy),

X(wg_parser_connect),
X64(wg_parser_connect),
X(wg_parser_disconnect),

X(wg_parser_get_next_read_offset),
Expand Down