From: Jacek Caban jacek@codeweavers.com
--- dlls/opengl32/unix_wgl.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/dlls/opengl32/unix_wgl.c b/dlls/opengl32/unix_wgl.c index 63109e4ee2b..0e63f0415b4 100644 --- a/dlls/opengl32/unix_wgl.c +++ b/dlls/opengl32/unix_wgl.c @@ -2847,14 +2847,11 @@ static BOOL wow64_unmap_buffer( TEB *teb, struct buffer *buffer ) unmap_vk_buffer( buffer ); }
- if (buffer->host_ptr != buffer->map_ptr) + if (buffer->map_ptr && buffer->copy_length) { - if (buffer->copy_length) - { - TRACE( "Copying %#zx from wow64 buffer %p to buffer %p\n", buffer->copy_length, - buffer->map_ptr, buffer->host_ptr ); - memcpy( buffer->host_ptr, buffer->map_ptr, buffer->copy_length ); - } + TRACE( "Copying %#zx from wow64 buffer %p to buffer %p\n", buffer->copy_length, + buffer->map_ptr, buffer->host_ptr ); + memcpy( buffer->host_ptr, buffer->map_ptr, buffer->copy_length ); }
buffer->host_ptr = buffer->map_ptr = NULL;