- Fix warnings

svn path=/trunk/; revision=16780
This commit is contained in:
Alex Ionescu 2005-07-27 01:50:31 +00:00
parent edcb998459
commit 42fb82a647
4 changed files with 7 additions and 4 deletions

View file

@ -25,6 +25,7 @@
#include <stdarg.h> #include <stdarg.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <ctype.h>
#include "wine/unicode.h" #include "wine/unicode.h"
#include "windef.h" #include "windef.h"

View file

@ -1197,7 +1197,7 @@ DWORD WINAPI SHSetValueA(HKEY hKey, LPCSTR lpszSubKey, LPCSTR lpszValue,
debugstr_a(lpszValue), dwType, pvData, cbData); debugstr_a(lpszValue), dwType, pvData, cbData);
if (lpszSubKey && *lpszSubKey) if (lpszSubKey && *lpszSubKey)
dwRet = RegCreateKeyExA(hKey, lpszSubKey, 0, szEmpty, dwRet = RegCreateKeyExA(hKey, lpszSubKey, 0, (LPSTR)szEmpty,
0, KEY_SET_VALUE, NULL, &hSubKey, &dwDummy); 0, KEY_SET_VALUE, NULL, &hSubKey, &dwDummy);
else else
hSubKey = hKey; hSubKey = hKey;
@ -1226,7 +1226,7 @@ DWORD WINAPI SHSetValueW(HKEY hKey, LPCWSTR lpszSubKey, LPCWSTR lpszValue,
debugstr_w(lpszValue), dwType, pvData, cbData); debugstr_w(lpszValue), dwType, pvData, cbData);
if (lpszSubKey && *lpszSubKey) if (lpszSubKey && *lpszSubKey)
dwRet = RegCreateKeyExW(hKey, lpszSubKey, 0, szEmpty, dwRet = RegCreateKeyExW(hKey, lpszSubKey, 0, (LPWSTR)szEmpty,
0, KEY_SET_VALUE, NULL, &hSubKey, &dwDummy); 0, KEY_SET_VALUE, NULL, &hSubKey, &dwDummy);
else else
hSubKey = hKey; hSubKey = hKey;

View file

@ -27,6 +27,7 @@
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <ctype.h>
#define NONAMELESSUNION #define NONAMELESSUNION
#define NONAMELESSSTRUCT #define NONAMELESSSTRUCT

View file

@ -23,6 +23,7 @@
#include <stdarg.h> #include <stdarg.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <ctype.h>
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "winnls.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)) if (IsBadStringPtrA(pszUrl, -1) || IsBadWritePtr(lpDest, nDestLen))
return E_INVALIDARG; return E_INVALIDARG;
HashData((const BYTE*)pszUrl, (int)strlen(pszUrl), lpDest, nDestLen); HashData((LPSTR)pszUrl, (int)strlen(pszUrl), lpDest, nDestLen);
return S_OK; 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. * return the same digests for the same URL.
*/ */
WideCharToMultiByte(0, 0, pszUrl, -1, szUrl, MAX_PATH, 0, 0); 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; return S_OK;
} }