Commit 4ad63128 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

ole32: Initialise all of position variables in test_save_load_filemoniker.

Initialise all 8-bytes instead of just the lower 4-bytes. This test isn't designed to be testing whether the Seek method of the object return by CreateStreamOnHGlobal uses the high part of the positions passed in.
parent 17b7ee13
......@@ -1878,9 +1878,9 @@ static void test_save_load_filemoniker(void)
int i;
/* see FileMonikerImpl_Save docs */
zero_pos.u.LowPart = 0;
dead_pos.u.LowPart = sizeof(WORD) + sizeof(DWORD) + (lstrlenW(wszFileName1) + 1) + sizeof(WORD);
nulls_pos.u.LowPart = dead_pos.u.LowPart + sizeof(WORD);
zero_pos.QuadPart = 0;
dead_pos.QuadPart = sizeof(WORD) + sizeof(DWORD) + (lstrlenW(wszFileName1) + 1) + sizeof(WORD);
nulls_pos.QuadPart = dead_pos.QuadPart + sizeof(WORD);
/* create the stream we're going to write to */
hr = CreateStreamOnHGlobal(NULL, TRUE, &pStm);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment