explorer: Initialise window->pidl to NULL in shellwindows_Register().

Since array_reserve() doesn't.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2021-04-26 13:41:36 +02:00 committed by Alexandre Julliard
parent b9070e1153
commit 6b49b50bbe
1 changed files with 1 additions and 0 deletions

View File

@ -1219,6 +1219,7 @@ static HRESULT WINAPI shellwindows_Register(IShellWindows *iface,
window->hwnd = hwnd;
window->class = class;
*cookie = window->cookie = ++cookie_counter;
window->pidl = NULL;
LeaveCriticalSection(&sw->cs);
return S_OK;