Commit a9644716 authored by Rolf Kalbermatter's avatar Rolf Kalbermatter Committed by Alexandre Julliard

Fixed some signed/unsigned comparison warnings.

parent 08ee2e1c
......@@ -63,7 +63,7 @@ void FreeChangeNotifications()
while(ptr != &tail)
{
int i;
UINT i;
item = ptr;
ptr = ptr->next;
......@@ -119,7 +119,7 @@ static BOOL DeleteNode(LPNOTIFICATIONLIST item)
if (ptr == item)
{
int i;
UINT i;
TRACE("item=%p prev=%p next=%p\n", item, item->prev, item->next);
......
......@@ -90,7 +90,7 @@ BOOL GetShellOle(void)
*/
HGLOBAL RenderHDROP(LPITEMIDLIST pidlRoot, LPITEMIDLIST * apidl, UINT cidl)
{
int i;
UINT i;
int rootsize = 0,size = 0;
char szRootPath[MAX_PATH];
char szFileName[MAX_PATH];
......@@ -143,7 +143,8 @@ HGLOBAL RenderHDROP(LPITEMIDLIST pidlRoot, LPITEMIDLIST * apidl, UINT cidl)
HGLOBAL RenderSHELLIDLIST (LPITEMIDLIST pidlRoot, LPITEMIDLIST * apidl, UINT cidl)
{
int i,offset = 0, sizePidl, size;
UINT i;
int offset = 0, sizePidl, size;
HGLOBAL hGlobal;
LPIDA pcida;
......
......@@ -145,7 +145,7 @@ static ULONG WINAPI IEnumFORMATETC_fnRelease(LPENUMFORMATETC iface)
static HRESULT WINAPI IEnumFORMATETC_fnNext(LPENUMFORMATETC iface, ULONG celt, FORMATETC *rgelt, ULONG *pceltFethed)
{
ICOM_THIS(IEnumFORMATETCImpl,iface);
int i;
UINT i;
TRACE("(%p)->(%lu,%p)\n", This, celt, rgelt);
......
......@@ -255,7 +255,7 @@ void FillList (HWND hCb, char *pszLatest)
/* char szDbgMsg[256] = "" ; */
char *pszList = NULL, *pszCmd = NULL, cMatch = 0, cMax = 0x60, szIndex[2] = "-" ;
DWORD icList = 0, icCmd = 0 ;
int Nix ;
UINT Nix ;
SendMessageA (hCb, CB_RESETCONTENT, 0, 0) ;
......
......@@ -1364,7 +1364,7 @@ HRESULT WINAPI CIDLData_CreateFromIDArray(
LPCITEMIDLIST *lppidlFiles,
LPDATAOBJECT *ppdataObject)
{
INT i;
UINT i;
HWND hwnd = 0; /*FIXME: who should be hwnd of owner? set to desktop */
TRACE("(%p, %ld, %p, %p)\n", pidlFolder, cpidlFiles, lppidlFiles, ppdataObject);
......
......@@ -962,7 +962,7 @@ static HRESULT WINAPI ISFHelper_fnAddFolder (ISFHelper * iface, HWND hwnd, LPCST
static HRESULT WINAPI ISFHelper_fnDeleteItems (ISFHelper * iface, UINT cidl, LPCITEMIDLIST * apidl)
{
_ICOM_THIS_From_ISFHelper (IGenericSFImpl, iface)
int i;
UINT i;
char szPath[MAX_PATH];
BOOL bConfirm = TRUE;
......@@ -1019,7 +1019,7 @@ static HRESULT WINAPI ISFHelper_fnDeleteItems (ISFHelper * iface, UINT cidl, LPC
static HRESULT WINAPI
ISFHelper_fnCopyItems (ISFHelper * iface, IShellFolder * pSFFrom, UINT cidl, LPCITEMIDLIST * apidl)
{
int i;
UINT i;
IPersistFolder2 *ppf2 = NULL;
char szSrcPath[MAX_PATH],
szDstPath[MAX_PATH];
......
......@@ -170,7 +170,6 @@ static UINT SHELL_FindExecutable(LPCSTR lpPath, LPCSTR lpFile, LPCSTR lpOperatio
char buffer[256]; /* Used to GetProfileString */
UINT retval = 31; /* default - 'No association was found' */
char *tok; /* token pointer */
int i; /* random counter */
char xlpFile[256] = ""; /* result of SearchPath */
TRACE("%s\n", (lpFile != NULL) ? lpFile : "-");
......@@ -224,6 +223,8 @@ static UINT SHELL_FindExecutable(LPCSTR lpPath, LPCSTR lpFile, LPCSTR lpOperatio
if (GetProfileStringA("windows", "programs", "exe pif bat com",
buffer, sizeof(buffer)) > 0)
{
UINT i;
for (i = 0;i<strlen(buffer); i++) buffer[i] = tolower(buffer[i]);
tok = strtok(buffer, " \t"); /* ? */
......
......@@ -561,7 +561,7 @@ static HRESULT ShellView_FillList(IShellViewImpl * This)
LPENUMIDLIST pEnumIDList;
LPITEMIDLIST pidl;
DWORD dwFetched;
UINT i;
INT i;
HRESULT hRes;
HDPA hdpa;
......@@ -1313,7 +1313,8 @@ static LRESULT ShellView_OnNotify(IShellViewImpl * This, UINT CtlID, LPNMHDR lpn
#endif
else if(plvKeyDown->wVKey == VK_DELETE)
{
int i, item_index;
UINT i;
int item_index;
LVITEMA item;
LPITEMIDLIST* pItems;
ISFHelper *psfhlp;
......
......@@ -265,7 +265,7 @@ static void DoOpenExplore(
{
ICOM_THIS(ItemCmImpl, iface);
int i, bFolderFound = FALSE;
UINT i, bFolderFound = FALSE;
LPITEMIDLIST pidlFQ;
SHELLEXECUTEINFOA sei;
......
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