urlmon/tests: Fix a couple of allocations.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Zebediah Figura 2018-02-05 18:40:14 -06:00 committed by Alexandre Julliard
parent d0ecd514b4
commit 8d773e2c83
1 changed files with 2 additions and 2 deletions

View File

@ -2332,7 +2332,7 @@ static void test_bsc_marshaling(void)
rem_bindinfo.stgmedData.tymed = TYMED_HGLOBAL;
buf = GlobalAlloc(0, sizeof(5));
buf = GlobalAlloc(0, 5);
strcpy(buf, "test");
rem_bindinfo.stgmedData.u.hGlobal = buf;
rem_bindinfo.cbstgmedData = 5;
@ -2549,7 +2549,7 @@ static void test_bsc_marshaling(void)
rem_bindinfo.stgmedData.tymed = TYMED_HGLOBAL;
buf = GlobalAlloc(0, sizeof(5));
buf = GlobalAlloc(0, 5);
strcpy(buf, "test");
rem_bindinfo.stgmedData.u.hGlobal = buf;
rem_bindinfo.cbstgmedData = 5;