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:
Rob Shearman 2007-11-12 20:11:01 +00:00 committed by Alexandre Julliard
parent d881005c4f
commit 8ee930150c
1 changed files with 1 additions and 1 deletions

View File

@ -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[] =