From: Tim Clem <tclem(a)codeweavers.com> Effectively a false positive, since we only use window_shm if get_shared_window succeeds, but the compiler doesn't know that. --- dlls/win32u/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/win32u/window.c b/dlls/win32u/window.c index 4a9e817c7e4..38af589a0a8 100644 --- a/dlls/win32u/window.c +++ b/dlls/win32u/window.c @@ -993,7 +993,7 @@ BOOL is_window_enabled( HWND hwnd ) UINT get_window_dpi_awareness_context( HWND hwnd ) { struct object_lock lock = OBJECT_LOCK_INIT; - const window_shm_t *window_shm; + const window_shm_t *window_shm = NULL; UINT status, ctx = 0; while ((status = get_shared_window( hwnd, &lock, &window_shm )) == STATUS_PENDING) -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/8762