Module: wine Branch: master Commit: 4ad631286a01be1b4998d189b2ba0dd3973a632f URL: http://source.winehq.org/git/wine.git/?a=commit;h=4ad631286a01be1b4998d189b2...
Author: Rob Shearman robertshearman@gmail.com Date: Fri Dec 4 15:08:44 2009 +0000
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.
---
dlls/ole32/tests/moniker.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/ole32/tests/moniker.c b/dlls/ole32/tests/moniker.c index d27f766..7cc5f78 100644 --- a/dlls/ole32/tests/moniker.c +++ b/dlls/ole32/tests/moniker.c @@ -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);