gdi32: Avoid two cases of shift overflow in get_glyph_indices.
This commit is contained in:
parent
18a02d8f41
commit
775de7922e
|
@ -2391,12 +2391,12 @@ static BOOL get_glyph_indices(INT charset, UINT code_page, WORD *idx, UINT count
|
|||
if (charset == SYMBOL_CHARSET)
|
||||
{
|
||||
ok(strcmp("Arial", name), "face name should NOT be Arial\n");
|
||||
ok(fs.fsCsb[0] & (1 << 31), "symbol encoding should be available\n");
|
||||
ok(fs.fsCsb[0] & (1u << 31), "symbol encoding should be available\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
ok(!strcmp("Arial", name), "face name should be Arial, not %s\n", name);
|
||||
ok(!(fs.fsCsb[0] & (1 << 31)), "symbol encoding should NOT be available\n");
|
||||
ok(!(fs.fsCsb[0] & (1u << 31)), "symbol encoding should NOT be available\n");
|
||||
}
|
||||
|
||||
if (!TranslateCharsetInfo((DWORD *)(INT_PTR)cs, &csi, TCI_SRCCHARSET))
|
||||
|
|
Loading…
Reference in New Issue