ole32: Fix a memory leak in the HGLOBAL stream tests by telling CreateStreamOnHGlobal to free the memory it allocates, as we don't free it ourselves in this test.
This commit is contained in:
parent
d881005c4f
commit
8ee930150c
|
@ -209,7 +209,7 @@ static IStream Test_Stream = { &StreamVtbl };
|
|||
static void test_copyto(void)
|
||||
{
|
||||
IStream *pStream, *pStream2;
|
||||
HRESULT hr = CreateStreamOnHGlobal(NULL, FALSE, &pStream);
|
||||
HRESULT hr = CreateStreamOnHGlobal(NULL, TRUE, &pStream);
|
||||
static const char szHello[] = "Hello";
|
||||
ULARGE_INTEGER cb;
|
||||
static const char *methods_copyto[] =
|
||||
|
|
Loading…
Reference in New Issue