From d324ccfce74cb73e2801d4ce0f0e10db3a6350d2 Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Tue, 7 Sep 2004 20:25:52 +0000 Subject: [PATCH] Fix some warnings found with -Wsign-compare. --- dlls/ole32/compobj.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c index 685715620f5..3305cc96aad 100644 --- a/dlls/ole32/compobj.c +++ b/dlls/ole32/compobj.c @@ -1290,7 +1290,7 @@ end: * * Reads a registry value and expands it when necessary */ -HRESULT compobj_RegReadPath(char * keyname, char * valuename, char * dst, int dstlen) +HRESULT compobj_RegReadPath(char * keyname, char * valuename, char * dst, DWORD dstlen) { HRESULT hres; HKEY key; @@ -1303,7 +1303,7 @@ HRESULT compobj_RegReadPath(char * keyname, char * valuename, char * dst, int ds if (keytype == REG_EXPAND_SZ) { if (dstlen <= ExpandEnvironmentStringsA(src, dst, dstlen)) hres = ERROR_MORE_DATA; } else { - strncpy(dst, src, dstlen); + lstrcpynA(dst, src, dstlen); } } RegCloseKey (key); @@ -1589,7 +1589,7 @@ HRESULT WINAPI CoCreateInstanceEx( IUnknown* pUnk = NULL; HRESULT hr; ULONG index; - int successCount = 0; + ULONG successCount = 0; /* * Sanity check