mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 11:03:16 +00:00
[TOOLS] Fix/suppress all MSVC/x64 warnings (#1525)
This commit is contained in:
parent
0aed8b09a4
commit
f47f45dbdd
29 changed files with 140 additions and 37 deletions
|
@ -16,7 +16,7 @@ HvpAddBin(
|
|||
{
|
||||
PHMAP_ENTRY BlockList;
|
||||
PHBIN Bin;
|
||||
SIZE_T BinSize;
|
||||
ULONG BinSize;
|
||||
ULONG i;
|
||||
ULONG BitmapSize;
|
||||
ULONG BlockCount;
|
||||
|
@ -24,7 +24,7 @@ HvpAddBin(
|
|||
PHCELL Block;
|
||||
|
||||
BinSize = ROUND_UP(Size + sizeof(HBIN), HBLOCK_SIZE);
|
||||
BlockCount = (ULONG)(BinSize / HBLOCK_SIZE);
|
||||
BlockCount = BinSize / HBLOCK_SIZE;
|
||||
|
||||
Bin = RegistryHive->Allocate(BinSize, TRUE, TAG_CM);
|
||||
if (Bin == NULL)
|
||||
|
@ -34,7 +34,7 @@ HvpAddBin(
|
|||
Bin->Signature = HV_HBIN_SIGNATURE;
|
||||
Bin->FileOffset = RegistryHive->Storage[Storage].Length *
|
||||
HBLOCK_SIZE;
|
||||
Bin->Size = (ULONG)BinSize;
|
||||
Bin->Size = BinSize;
|
||||
|
||||
/* Allocate new block list */
|
||||
OldBlockListSize = RegistryHive->Storage[Storage].Length;
|
||||
|
|
|
@ -21,7 +21,7 @@ else()
|
|||
infhostput.c
|
||||
infhostrtl.c)
|
||||
|
||||
add_definitions(-D__NO_CTYPE_INLINES -DINFLIB_HOST)
|
||||
add_definitions(-D__NO_CTYPE_INLINES -DINFLIB_HOST -D_CRT_SECURE_NO_WARNINGS)
|
||||
add_library(inflibhost ${SOURCE})
|
||||
|
||||
if(NOT MSVC)
|
||||
|
|
|
@ -582,7 +582,7 @@ InfpGetStringField(PINFCONTEXT Context,
|
|||
0);
|
||||
|
||||
if (RequiredSize != NULL)
|
||||
*RequiredSize = Size + 1;
|
||||
*RequiredSize = (ULONG)Size + 1;
|
||||
|
||||
if (ReturnBuffer != NULL)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue