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:
parent
f797f63d24
commit
3e7da62ab8
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue