Author: weiden
Date: Mon Oct 2 17:29:55 2006
New Revision: 24361
URL:
http://svn.reactos.org/svn/reactos?rev=24361&view=rev
Log:
Fix some warnings
Modified:
trunk/reactos/tools/mkhive/cmi.c
trunk/reactos/tools/mkhive/mkhive.h
trunk/reactos/tools/mkhive/rtl.c
Modified: trunk/reactos/tools/mkhive/cmi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/mkhive/cmi.c?rev=243…
==============================================================================
--- trunk/reactos/tools/mkhive/cmi.c (original)
+++ trunk/reactos/tools/mkhive/cmi.c Mon Oct 2 17:29:55 2006
@@ -31,7 +31,7 @@
IN SIZE_T Size,
IN BOOLEAN Paged)
{
- return (PVOID) malloc(Size);
+ return (PVOID) malloc((size_t)Size);
}
static VOID
Modified: trunk/reactos/tools/mkhive/mkhive.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/mkhive/mkhive.h?rev=…
==============================================================================
--- trunk/reactos/tools/mkhive/mkhive.h (original)
+++ trunk/reactos/tools/mkhive/mkhive.h Mon Oct 2 17:29:55 2006
@@ -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)
Modified: trunk/reactos/tools/mkhive/rtl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/mkhive/rtl.c?rev=243…
==============================================================================
--- trunk/reactos/tools/mkhive/rtl.c (original)
+++ trunk/reactos/tools/mkhive/rtl.c Mon Oct 2 17:29:55 2006
@@ -3,6 +3,8 @@
* FILE: tools/mkhive/rtl.c
* PURPOSE: Runtime Library
*/
+
+#include <stdlib.h>
#define RTL_H
@@ -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++ );