Commit 61aabd66 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Warning fixes for gcc 4.0.

parent 7160af00
...@@ -176,7 +176,7 @@ DWORD WINAPI RegQueryValue16( HKEY hkey, LPCSTR name, LPSTR data, LPDWORD count ...@@ -176,7 +176,7 @@ DWORD WINAPI RegQueryValue16( HKEY hkey, LPCSTR name, LPSTR data, LPDWORD count
if (!advapi32) init_func_ptrs(); if (!advapi32) init_func_ptrs();
fix_win16_hkey( &hkey ); fix_win16_hkey( &hkey );
if (count) *count &= 0xffff; if (count) *count &= 0xffff;
return pRegQueryValueA( hkey, name, data, count ); return pRegQueryValueA( hkey, name, data, (LONG*) count );
} }
/****************************************************************************** /******************************************************************************
...@@ -198,7 +198,7 @@ DWORD WINAPI RegSetValueEx16( HKEY hkey, LPCSTR name, DWORD reserved, DWORD type ...@@ -198,7 +198,7 @@ DWORD WINAPI RegSetValueEx16( HKEY hkey, LPCSTR name, DWORD reserved, DWORD type
{ {
if (!advapi32) init_func_ptrs(); if (!advapi32) init_func_ptrs();
fix_win16_hkey( &hkey ); fix_win16_hkey( &hkey );
if (!count && (type==REG_SZ)) count = strlen(data); if (!count && (type==REG_SZ)) count = strlen( (char*) data);
return pRegSetValueExA( hkey, name, reserved, type, data, count ); return pRegSetValueExA( hkey, name, reserved, type, data, count );
} }
......
...@@ -1026,7 +1026,7 @@ HRESULT WINAPI ProgIDFromCLSID(REFCLSID clsid, LPOLESTR *lplpszProgID) ...@@ -1026,7 +1026,7 @@ HRESULT WINAPI ProgIDFromCLSID(REFCLSID clsid, LPOLESTR *lplpszProgID)
if (ret == S_OK) if (ret == S_OK)
{ {
DWORD progidlen = 0; LONG progidlen = 0;
if (RegQueryValueW(hkey, NULL, NULL, &progidlen)) if (RegQueryValueW(hkey, NULL, NULL, &progidlen))
ret = REGDB_E_CLASSNOTREG; ret = REGDB_E_CLASSNOTREG;
...@@ -1064,7 +1064,7 @@ HRESULT WINAPI ProgIDFromCLSID(REFCLSID clsid, LPOLESTR *lplpszProgID) ...@@ -1064,7 +1064,7 @@ HRESULT WINAPI ProgIDFromCLSID(REFCLSID clsid, LPOLESTR *lplpszProgID)
HRESULT WINAPI CLSIDFromProgID16(LPCOLESTR16 progid, LPCLSID riid) HRESULT WINAPI CLSIDFromProgID16(LPCOLESTR16 progid, LPCLSID riid)
{ {
char *buf,buf2[80]; char *buf,buf2[80];
DWORD buf2len; LONG buf2len;
HRESULT err; HRESULT err;
HKEY xhkey; HKEY xhkey;
...@@ -1101,7 +1101,7 @@ HRESULT WINAPI CLSIDFromProgID(LPCOLESTR progid, LPCLSID riid) ...@@ -1101,7 +1101,7 @@ HRESULT WINAPI CLSIDFromProgID(LPCOLESTR progid, LPCLSID riid)
{ {
static const WCHAR clsidW[] = { '\\','C','L','S','I','D',0 }; static const WCHAR clsidW[] = { '\\','C','L','S','I','D',0 };
WCHAR buf2[CHARS_IN_GUID]; WCHAR buf2[CHARS_IN_GUID];
DWORD buf2len = sizeof(buf2); LONG buf2len = sizeof(buf2);
HKEY xhkey; HKEY xhkey;
WCHAR *buf = HeapAlloc( GetProcessHeap(),0,(strlenW(progid)+8) * sizeof(WCHAR) ); WCHAR *buf = HeapAlloc( GetProcessHeap(),0,(strlenW(progid)+8) * sizeof(WCHAR) );
...@@ -1166,7 +1166,7 @@ HRESULT WINAPI CoGetPSClsid(REFIID riid, CLSID *pclsid) ...@@ -1166,7 +1166,7 @@ HRESULT WINAPI CoGetPSClsid(REFIID riid, CLSID *pclsid)
static const WCHAR wszPSC[] = {'\\','P','r','o','x','y','S','t','u','b','C','l','s','i','d','3','2',0}; static const WCHAR wszPSC[] = {'\\','P','r','o','x','y','S','t','u','b','C','l','s','i','d','3','2',0};
WCHAR path[ARRAYSIZE(wszInterface) - 1 + CHARS_IN_GUID - 1 + ARRAYSIZE(wszPSC)]; WCHAR path[ARRAYSIZE(wszInterface) - 1 + CHARS_IN_GUID - 1 + ARRAYSIZE(wszPSC)];
WCHAR value[CHARS_IN_GUID]; WCHAR value[CHARS_IN_GUID];
DWORD len; LONG len;
HKEY hkey; HKEY hkey;
TRACE("() riid=%s, pclsid=%p\n", debugstr_guid(riid), pclsid); TRACE("() riid=%s, pclsid=%p\n", debugstr_guid(riid), pclsid);
...@@ -2206,7 +2206,7 @@ HRESULT WINAPI OleGetAutoConvert(REFCLSID clsidOld, LPCLSID pClsidNew) ...@@ -2206,7 +2206,7 @@ HRESULT WINAPI OleGetAutoConvert(REFCLSID clsidOld, LPCLSID pClsidNew)
static const WCHAR wszAutoConvertTo[] = {'A','u','t','o','C','o','n','v','e','r','t','T','o',0}; static const WCHAR wszAutoConvertTo[] = {'A','u','t','o','C','o','n','v','e','r','t','T','o',0};
HKEY hkey = NULL; HKEY hkey = NULL;
WCHAR buf[CHARS_IN_GUID]; WCHAR buf[CHARS_IN_GUID];
DWORD len; LONG len;
HRESULT res = S_OK; HRESULT res = S_OK;
if (ERROR_SUCCESS != COM_OpenKeyForCLSID(clsidOld, KEY_READ, &hkey)) if (ERROR_SUCCESS != COM_OpenKeyForCLSID(clsidOld, KEY_READ, &hkey))
......
...@@ -7091,7 +7091,7 @@ HRESULT OLECONVERT_CreateCompObjStream(LPSTORAGE pStorage, LPCSTR strOleTypeName ...@@ -7091,7 +7091,7 @@ HRESULT OLECONVERT_CreateCompObjStream(LPSTORAGE pStorage, LPCSTR strOleTypeName
{ {
char strTemp[OLESTREAM_MAX_STR_LEN]; char strTemp[OLESTREAM_MAX_STR_LEN];
IStorageCompObj.dwCLSIDNameLength = OLESTREAM_MAX_STR_LEN; IStorageCompObj.dwCLSIDNameLength = OLESTREAM_MAX_STR_LEN;
hErr = RegQueryValueA(hKey, NULL, strTemp, &(IStorageCompObj.dwCLSIDNameLength)); hErr = RegQueryValueA(hKey, NULL, strTemp, (LONG*) &(IStorageCompObj.dwCLSIDNameLength));
if(hErr == ERROR_SUCCESS) if(hErr == ERROR_SUCCESS)
{ {
strcpy(IStorageCompObj.strCLSIDName, strTemp); strcpy(IStorageCompObj.strCLSIDName, strTemp);
......
...@@ -574,7 +574,7 @@ DWORD WINAPI RegQueryValue16( HKEY hkey, LPCSTR name, LPSTR data, LPDWORD count ...@@ -574,7 +574,7 @@ DWORD WINAPI RegQueryValue16( HKEY hkey, LPCSTR name, LPSTR data, LPDWORD count
{ {
fix_win16_hkey( &hkey ); fix_win16_hkey( &hkey );
if (count) *count &= 0xffff; if (count) *count &= 0xffff;
return RegQueryValueA( hkey, name, data, count ); return RegQueryValueA( hkey, name, data, (LONG*) count );
} }
/****************************************************************************** /******************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment