browseui: Use defined context kind constant with CoGetMalloc().

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2015-12-04 12:23:22 +03:00 committed by Alexandre Julliard
parent f797f63d24
commit 3e7da62ab8

View file

@ -93,7 +93,7 @@ static void set_buffer(LPWSTR *buffer, LPCWSTR string)
if (string == NULL)
string = empty_string;
CoGetMalloc(1, &malloc);
CoGetMalloc(MEMCTX_TASK, &malloc);
cb = (strlenW(string) + 1)*sizeof(WCHAR);
if (*buffer == NULL || cb > IMalloc_GetSize(malloc, *buffer))