oleacc: Avoid two cases of shift overflow.

This commit is contained in:
Gerald Pfeifer 2015-09-13 00:12:18 +02:00 committed by Alexandre Julliard
parent 1e9402124d
commit 92f9dd1942
1 changed files with 2 additions and 2 deletions

View File

@ -445,7 +445,7 @@ static void test_GetStateText(void)
ret = GetStateTextW(1<<i, buf, 1024);
ok(ret, "%d) GetStateText failed\n", i);
}
ret = GetStateTextW(1<<31, buf, 1024);
ret = GetStateTextW(1u<<31, buf, 1024);
ok(!ret, "31) GetStateText succeeded: %d\n", ret);
ret = GetStateTextW(2, buf, 1024);
@ -478,7 +478,7 @@ static void test_GetStateText(void)
ret = GetStateTextA(1<<i, bufa, 1024);
ok(ret, "%d) GetStateText failed\n", i);
}
ret = GetStateTextA(1<<31, bufa, 1024);
ret = GetStateTextA(1u<<31, bufa, 1024);
ok(!ret, "31) GetStateText succeeded: %d\n", ret);
}