server: Replace 1 << 31 by 1u << 31 to avoid shift overflow in in get_active_hooks.
This commit is contained in:
parent
2ecd3772e3
commit
509d0f06ce
|
@ -356,7 +356,7 @@ unsigned int get_active_hooks(void)
|
||||||
{
|
{
|
||||||
struct hook_table *table = get_queue_hooks( current );
|
struct hook_table *table = get_queue_hooks( current );
|
||||||
struct hook_table *global_hooks = get_global_hooks( current );
|
struct hook_table *global_hooks = get_global_hooks( current );
|
||||||
unsigned int ret = 1 << 31; /* set high bit to indicate that the bitmap is valid */
|
unsigned int ret = 1u << 31; /* set high bit to indicate that the bitmap is valid */
|
||||||
int id;
|
int id;
|
||||||
|
|
||||||
for (id = WH_MINHOOK; id <= WH_WINEVENT; id++)
|
for (id = WH_MINHOOK; id <= WH_WINEVENT; id++)
|
||||||
|
|
Loading…
Reference in New Issue