Fix some warnings found with -Wsign-compare.
This commit is contained in:
parent
cb10a70a12
commit
d324ccfce7
@ -1290,7 +1290,7 @@ end:
|
|||||||
*
|
*
|
||||||
* Reads a registry value and expands it when necessary
|
* 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;
|
HRESULT hres;
|
||||||
HKEY key;
|
HKEY key;
|
||||||
@ -1303,7 +1303,7 @@ HRESULT compobj_RegReadPath(char * keyname, char * valuename, char * dst, int ds
|
|||||||
if (keytype == REG_EXPAND_SZ) {
|
if (keytype == REG_EXPAND_SZ) {
|
||||||
if (dstlen <= ExpandEnvironmentStringsA(src, dst, dstlen)) hres = ERROR_MORE_DATA;
|
if (dstlen <= ExpandEnvironmentStringsA(src, dst, dstlen)) hres = ERROR_MORE_DATA;
|
||||||
} else {
|
} else {
|
||||||
strncpy(dst, src, dstlen);
|
lstrcpynA(dst, src, dstlen);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
RegCloseKey (key);
|
RegCloseKey (key);
|
||||||
@ -1589,7 +1589,7 @@ HRESULT WINAPI CoCreateInstanceEx(
|
|||||||
IUnknown* pUnk = NULL;
|
IUnknown* pUnk = NULL;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
ULONG index;
|
ULONG index;
|
||||||
int successCount = 0;
|
ULONG successCount = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Sanity check
|
* Sanity check
|
||||||
|
Loading…
x
Reference in New Issue
Block a user