shell32: Fix non-BOOL returns in BOOL functions.
This commit is contained in:
parent
b81eb2ee8b
commit
0f64ffd91f
|
@ -957,7 +957,7 @@ static BOOL BrsFolder_OnSetSelectionA(browse_info *info, LPVOID selection, BOOL
|
|||
return result;
|
||||
}
|
||||
|
||||
static BOOL BrsFolder_OnWindowPosChanging(browse_info *info, WINDOWPOS *pos)
|
||||
static LRESULT BrsFolder_OnWindowPosChanging(browse_info *info, WINDOWPOS *pos)
|
||||
{
|
||||
if ((info->lpBrowseInfo->ulFlags & BIF_NEWDIALOGSTYLE) && !(pos->flags & SWP_NOSIZE))
|
||||
{
|
||||
|
|
|
@ -230,7 +230,7 @@ BOOL WINAPI SHChangeNotifyUpdateEntryList(DWORD unknown1, DWORD unknown2,
|
|||
FIXME("(0x%08x, 0x%08x, 0x%08x, 0x%08x)\n",
|
||||
unknown1, unknown2, unknown3, unknown4);
|
||||
|
||||
return -1;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
struct new_delivery_notification
|
||||
|
|
|
@ -1190,7 +1190,7 @@ void WINAPI SHFreeUnusedLibraries (void)
|
|||
BOOL WINAPI DAD_AutoScroll(HWND hwnd, AUTO_SCROLL_DATA *samples, LPPOINT pt)
|
||||
{
|
||||
FIXME("hwnd = %p %p %p\n",hwnd,samples,pt);
|
||||
return 0;
|
||||
return FALSE;
|
||||
}
|
||||
/*************************************************************************
|
||||
* DAD_DragEnter [SHELL32.130]
|
||||
|
@ -1239,7 +1239,7 @@ BOOL WINAPI DAD_SetDragImage(
|
|||
LPPOINT lppt)
|
||||
{
|
||||
FIXME("%p %p stub\n",himlTrack, lppt);
|
||||
return 0;
|
||||
return FALSE;
|
||||
}
|
||||
/*************************************************************************
|
||||
* DAD_ShowDragImage [SHELL32.137]
|
||||
|
@ -1250,7 +1250,7 @@ BOOL WINAPI DAD_SetDragImage(
|
|||
BOOL WINAPI DAD_ShowDragImage(BOOL bShow)
|
||||
{
|
||||
FIXME("0x%08x stub\n",bShow);
|
||||
return 0;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static const WCHAR szwCabLocation[] = {
|
||||
|
@ -1344,7 +1344,7 @@ BOOL WINAPI WriteCabinetState(CABINETSTATE *cs)
|
|||
*/
|
||||
BOOL WINAPI FileIconInit(BOOL bFullInit)
|
||||
{ FIXME("(%s)\n", bFullInit ? "true" : "false");
|
||||
return 0;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
|
@ -1551,7 +1551,7 @@ BOOL WINAPI SHWaitForFileToOpen(
|
|||
DWORD dwTimeout)
|
||||
{
|
||||
FIXME("%p 0x%08x 0x%08x stub\n", pidl, dwFlags, dwTimeout);
|
||||
return 0;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/************************************************************************
|
||||
|
|
|
@ -647,7 +647,7 @@ int WINAPI PathCleanupSpec( LPCWSTR lpszPathW, LPWSTR lpszFileW )
|
|||
static BOOL PathQualifyA(LPCSTR pszPath)
|
||||
{
|
||||
FIXME("%s\n",pszPath);
|
||||
return 0;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
|
@ -656,7 +656,7 @@ static BOOL PathQualifyA(LPCSTR pszPath)
|
|||
static BOOL PathQualifyW(LPCWSTR pszPath)
|
||||
{
|
||||
FIXME("%s\n",debugstr_w(pszPath));
|
||||
return 0;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
|
|
|
@ -1134,7 +1134,7 @@ static BOOL copy_file_to_file(FILE_OPERATION *op, const WCHAR *szFrom, const WCH
|
|||
if (!(op->req->fFlags & FOF_NOCONFIRMATION) && PathFileExistsW(szTo))
|
||||
{
|
||||
if (!SHELL_ConfirmDialogW(op->req->hwnd, ASK_OVERWRITE_FILE, PathFindFileNameW(szTo), op))
|
||||
return 0;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return SHNotifyCopyFileW(szFrom, szTo, FALSE) == 0;
|
||||
|
|
|
@ -372,7 +372,7 @@ static BOOL FileMenu_AppendItemW(
|
|||
if ((menudata == 0) || (MenuInfo.cbSize != sizeof(MENUINFO)))
|
||||
{
|
||||
ERR("menudata corrupt: %p %u\n", menudata, MenuInfo.cbSize);
|
||||
return 0;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
menudata->bFixedItems = TRUE;
|
||||
|
@ -549,7 +549,7 @@ BOOL WINAPI FileMenu_GetLastSelectedItemPidls(
|
|||
LPCITEMIDLIST *ppidlItem)
|
||||
{
|
||||
FIXME("0x%08x %p %p\n",uReserved, ppidlFolder, ppidlItem);
|
||||
return 0;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
#define FM_ICON_SIZE 16
|
||||
|
@ -758,7 +758,7 @@ BOOL WINAPI FileMenu_DeleteItemByFirstID(
|
|||
UINT uID)
|
||||
{
|
||||
TRACE("%p 0x%08x\n", hMenu, uID);
|
||||
return 0;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
|
@ -767,7 +767,7 @@ BOOL WINAPI FileMenu_DeleteItemByFirstID(
|
|||
BOOL WINAPI FileMenu_DeleteSeparator(HMENU hMenu)
|
||||
{
|
||||
TRACE("%p\n", hMenu);
|
||||
return 0;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
|
@ -779,7 +779,7 @@ BOOL WINAPI FileMenu_EnableItemByCmd(
|
|||
BOOL bEnable)
|
||||
{
|
||||
TRACE("%p 0x%08x 0x%08x\n", hMenu, uID,bEnable);
|
||||
return 0;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
|
|
|
@ -900,14 +900,14 @@ BOOL WINAPI SHInitRestricted(LPCVOID unused, LPCVOID inpRegKey)
|
|||
if (lstrcmpiW(inpRegKey, strRegistryPolicyW) &&
|
||||
lstrcmpiW(inpRegKey, strPolicyW))
|
||||
/* doesn't match, fail */
|
||||
return 0;
|
||||
return FALSE;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (lstrcmpiA(inpRegKey, strRegistryPolicyA) &&
|
||||
lstrcmpiA(inpRegKey, strPolicyA))
|
||||
/* doesn't match, fail */
|
||||
return 0;
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue