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.
This commit is contained in:
Rob Shearman 2009-12-04 15:08:44 +00:00 committed by Alexandre Julliard
parent 17b7ee13fb
commit 4ad631286a
1 changed files with 3 additions and 3 deletions

View File

@ -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);