From 78e43e0f29217d45945869a8b678ce4195f53342 Mon Sep 17 00:00:00 2001 From: Steven Edwards Date: Sun, 27 Jul 2003 22:00:26 +0000 Subject: [PATCH] Treat DWORD values as unsigned - Patch by vizzini svn path=/trunk/; revision=5294 --- reactos/tools/mkhive/reginf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/tools/mkhive/reginf.c b/reactos/tools/mkhive/reginf.c index 6a017dd3e46..8a6b6544cd5 100644 --- a/reactos/tools/mkhive/reginf.c +++ b/reactos/tools/mkhive/reginf.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: reginf.c,v 1.3 2003/05/18 12:12:07 ekohl Exp $ +/* $Id: reginf.c,v 1.4 2003/07/27 22:00:26 sedwards Exp $ * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS hive maker * FILE: tools/mkhive/reginf.h @@ -300,7 +300,7 @@ do_reg_operation(HKEY KeyHandle, if (Type == REG_DWORD) { - ULONG dw = Str ? strtol (Str, NULL, 0) : 0; + ULONG dw = Str ? strtoul (Str, NULL, 0) : 0; DPRINT("setting dword %s to %lx\n", ValueName, dw);