From 42fb82a6474d4b6bee405712d6fe510a1a4df44e Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Wed, 27 Jul 2005 01:50:31 +0000 Subject: [PATCH] - Fix warnings svn path=/trunk/; revision=16780 --- reactos/lib/shlwapi/path.c | 1 + reactos/lib/shlwapi/reg.c | 4 ++-- reactos/lib/shlwapi/string.c | 1 + reactos/lib/shlwapi/url.c | 5 +++-- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/reactos/lib/shlwapi/path.c b/reactos/lib/shlwapi/path.c index bb1c3f21e03..4d6c51e3396 100644 --- a/reactos/lib/shlwapi/path.c +++ b/reactos/lib/shlwapi/path.c @@ -25,6 +25,7 @@ #include #include #include +#include #include "wine/unicode.h" #include "windef.h" diff --git a/reactos/lib/shlwapi/reg.c b/reactos/lib/shlwapi/reg.c index e6a7f1748a9..6df3689ef19 100644 --- a/reactos/lib/shlwapi/reg.c +++ b/reactos/lib/shlwapi/reg.c @@ -1197,7 +1197,7 @@ DWORD WINAPI SHSetValueA(HKEY hKey, LPCSTR lpszSubKey, LPCSTR lpszValue, debugstr_a(lpszValue), dwType, pvData, cbData); if (lpszSubKey && *lpszSubKey) - dwRet = RegCreateKeyExA(hKey, lpszSubKey, 0, szEmpty, + dwRet = RegCreateKeyExA(hKey, lpszSubKey, 0, (LPSTR)szEmpty, 0, KEY_SET_VALUE, NULL, &hSubKey, &dwDummy); else hSubKey = hKey; @@ -1226,7 +1226,7 @@ DWORD WINAPI SHSetValueW(HKEY hKey, LPCWSTR lpszSubKey, LPCWSTR lpszValue, debugstr_w(lpszValue), dwType, pvData, cbData); if (lpszSubKey && *lpszSubKey) - dwRet = RegCreateKeyExW(hKey, lpszSubKey, 0, szEmpty, + dwRet = RegCreateKeyExW(hKey, lpszSubKey, 0, (LPWSTR)szEmpty, 0, KEY_SET_VALUE, NULL, &hSubKey, &dwDummy); else hSubKey = hKey; diff --git a/reactos/lib/shlwapi/string.c b/reactos/lib/shlwapi/string.c index 39ad6414c36..ae270452769 100644 --- a/reactos/lib/shlwapi/string.c +++ b/reactos/lib/shlwapi/string.c @@ -27,6 +27,7 @@ #include #include #include +#include #define NONAMELESSUNION #define NONAMELESSSTRUCT diff --git a/reactos/lib/shlwapi/url.c b/reactos/lib/shlwapi/url.c index 20f3d00669a..f10959964e0 100644 --- a/reactos/lib/shlwapi/url.c +++ b/reactos/lib/shlwapi/url.c @@ -23,6 +23,7 @@ #include #include #include +#include #include "windef.h" #include "winbase.h" #include "winnls.h" @@ -1398,7 +1399,7 @@ HRESULT WINAPI UrlHashA(LPCSTR pszUrl, unsigned char *lpDest, DWORD nDestLen) if (IsBadStringPtrA(pszUrl, -1) || IsBadWritePtr(lpDest, nDestLen)) return E_INVALIDARG; - HashData((const BYTE*)pszUrl, (int)strlen(pszUrl), lpDest, nDestLen); + HashData((LPSTR)pszUrl, (int)strlen(pszUrl), lpDest, nDestLen); return S_OK; } @@ -1420,7 +1421,7 @@ HRESULT WINAPI UrlHashW(LPCWSTR pszUrl, unsigned char *lpDest, DWORD nDestLen) * return the same digests for the same URL. */ WideCharToMultiByte(0, 0, pszUrl, -1, szUrl, MAX_PATH, 0, 0); - HashData((const BYTE*)szUrl, (int)strlen(szUrl), lpDest, nDestLen); + HashData((BYTE*)szUrl, (int)strlen(szUrl), lpDest, nDestLen); return S_OK; }