Commit f057d7d6 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

ole32/tests: Reset a variable before testing.

parent f96e210e
......@@ -1143,7 +1143,7 @@ static void test_moniker(
LPBYTE moniker_data;
DWORD moniker_size;
DWORD i;
BOOL same = TRUE;
BOOL same;
BYTE buffer[128];
IMoniker * moniker_proxy;
LPOLESTR display_name;
......@@ -1183,6 +1183,7 @@ static void test_moniker(
testname, sizeof_expected_moniker_comparison_data, moniker_size);
/* then do a byte-by-byte comparison */
same = TRUE;
for (i = 0; i < min(moniker_size, sizeof_expected_moniker_comparison_data); i++)
{
if (expected_moniker_comparison_data[i] != buffer[i])
......@@ -1226,6 +1227,7 @@ static void test_moniker(
testname, (DWORD)round_global_size(sizeof_expected_moniker_saved_data), moniker_size);
/* then do a byte-by-byte comparison */
same = TRUE;
for (i = 0; i < min(moniker_size, round_global_size(sizeof_expected_moniker_saved_data)); i++)
{
if (expected_moniker_saved_data[i] != moniker_data[i])
......@@ -1272,6 +1274,7 @@ static void test_moniker(
testname, (DWORD)round_global_size(sizeof_expected_moniker_marshal_data), moniker_size);
/* then do a byte-by-byte comparison */
same = TRUE;
if (expected_moniker_marshal_data)
{
for (i = 0; i < min(moniker_size, round_global_size(sizeof_expected_moniker_marshal_data)); i++)
......
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