Module: wine Branch: master Commit: eca1e4ea3666d0f9290f3bc2fc75f3e44e42656c URL: https://gitlab.winehq.org/wine/wine/-/commit/eca1e4ea3666d0f9290f3bc2fc75f3e...
Author: Rémi Bernon rbernon@codeweavers.com Date: Mon Mar 6 13:12:19 2023 +0100
winex11: Initialize IO_STATUS_BLOCK in X11DRV_GetICMProfile.
To avoid invalid writes on WOW64 Nt calls.
---
dlls/winex11.drv/graphics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winex11.drv/graphics.c b/dlls/winex11.drv/graphics.c index 54e6b9b2084..e3b0445379a 100644 --- a/dlls/winex11.drv/graphics.c +++ b/dlls/winex11.drv/graphics.c @@ -1689,7 +1689,7 @@ BOOL CDECL X11DRV_GetICMProfile( PHYSDEV dev, BOOL allow_default, LPDWORD size, else if ((buffer = get_icm_profile( &buflen ))) { static const WCHAR icm[] = {'.','i','c','m',0}; - IO_STATUS_BLOCK io; + IO_STATUS_BLOCK io = {{0}}; UINT64 hash = 0; HANDLE file; int status;