Fix some warnings

svn path=/trunk/; revision=24361
This commit is contained in:
Thomas Bluemel
2006-10-02 13:29:55 +00:00
parent afa1de7c81
commit 62ac7ad5c9
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ CmpAllocate(
IN SIZE_T Size,
IN BOOLEAN Paged)
{
return (PVOID) malloc(Size);
return (PVOID) malloc((size_t)Size);
}
static VOID
+1
View File
@@ -28,6 +28,7 @@
#define __MKHIVE_H__
#include <stdio.h>
#include <stdlib.h>
/* We have to do this because psdk/windef.h will _always_ define _WIN32... */
#if defined(_WIN32) || defined(_WIN64)
+3 -1
View File
@@ -4,6 +4,8 @@
* PURPOSE: Runtime Library
*/
#include <stdlib.h>
#define RTL_H
#define NTOS_MODE_USER
@@ -11,7 +13,7 @@
#include <ntddk.h>
#include <bitmap.c>
SIZE_T xwcslen( PWSTR String ) {
SIZE_T xwcslen( PCWSTR String ) {
SIZE_T i;
for( i = 0; String[i]; i++ );