ntdll: Cast left shifted 1 to be ulong wide (Coverity).
Signed-off-by: Marcus Meissner <marcus@jet.franken.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ce093a2acf
commit
de853e2b65
|
@ -1520,7 +1520,7 @@ static NTSTATUS create_logical_proc_info(SYSTEM_LOGICAL_PROCESSOR_INFORMATION **
|
||||||
fclose(f);
|
fclose(f);
|
||||||
}
|
}
|
||||||
else r = 0;
|
else r = 0;
|
||||||
if(!logical_proc_info_add_by_id(data, dataex, &len, max_len, RelationProcessorPackage, r, 1 << i))
|
if(!logical_proc_info_add_by_id(data, dataex, &len, max_len, RelationProcessorPackage, r, (ULONG_PTR)1 << i))
|
||||||
{
|
{
|
||||||
fclose(fcpu_list);
|
fclose(fcpu_list);
|
||||||
return STATUS_NO_MEMORY;
|
return STATUS_NO_MEMORY;
|
||||||
|
@ -1534,7 +1534,7 @@ static NTSTATUS create_logical_proc_info(SYSTEM_LOGICAL_PROCESSOR_INFORMATION **
|
||||||
fclose(f);
|
fclose(f);
|
||||||
}
|
}
|
||||||
else r = i;
|
else r = i;
|
||||||
if(!logical_proc_info_add_by_id(data, dataex, &len, max_len, RelationProcessorCore, r, 1 << i))
|
if(!logical_proc_info_add_by_id(data, dataex, &len, max_len, RelationProcessorCore, r, (ULONG_PTR)1 << i))
|
||||||
{
|
{
|
||||||
fclose(fcpu_list);
|
fclose(fcpu_list);
|
||||||
return STATUS_NO_MEMORY;
|
return STATUS_NO_MEMORY;
|
||||||
|
|
Loading…
Reference in New Issue