Commit b3ae4f79 authored by Fan WenJie's avatar Fan WenJie Committed by Alexandre Julliard

opengl32: Fix missing conversion of glUnmapNamedBuffer_params from 32bit to 64bit.

parent 60ce80e6
...@@ -2080,14 +2080,20 @@ static NTSTATUS wow64_gl_unmap_named_buffer( void *args, NTSTATUS (*gl_unmap_nam ...@@ -2080,14 +2080,20 @@ static NTSTATUS wow64_gl_unmap_named_buffer( void *args, NTSTATUS (*gl_unmap_nam
GLint buffer; GLint buffer;
GLboolean ret; GLboolean ret;
} *params32 = args; } *params32 = args;
struct glUnmapNamedBuffer_params params =
{
.teb = get_teb64(params32->teb),
.buffer = params32->buffer,
.ret = TRUE,
};
NTSTATUS status; NTSTATUS status;
TEB *teb = get_teb64( params32->teb );
if (!(ptr = get_named_buffer_pointer( teb, params32->buffer ))) return STATUS_SUCCESS; if (!(ptr = get_named_buffer_pointer( params.teb, params.buffer ))) return STATUS_SUCCESS;
status = wow64_unmap_buffer( ptr, get_named_buffer_param( teb, params32->buffer, GL_BUFFER_MAP_LENGTH ), status = wow64_unmap_buffer( ptr, get_named_buffer_param( params.teb, params.buffer, GL_BUFFER_MAP_LENGTH ),
get_named_buffer_param( teb, params32->buffer, GL_BUFFER_ACCESS_FLAGS ) ); get_named_buffer_param( params.teb, params.buffer, GL_BUFFER_ACCESS_FLAGS ) );
gl_unmap_named_buffer64( args ); gl_unmap_named_buffer64( &params );
params32->ret = params.ret;
return status; return status;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment