Functions4U, SysInfo: Fixed CLANG warnings

git-svn-id: svn://ultimatepp.org/upp/trunk@14391 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-04-27 16:48:38 +00:00
parent f5ed341334
commit 5ae01a686a
5 changed files with 5 additions and 5 deletions

View file

@ -1642,7 +1642,7 @@ bool RenameDeepWildcardsX(const char *path, const char *namewc, const char *newn
}
if (PatternMatch(namewc, name)) {
if ((ff.IsFolder() && forfolder) || (ff.IsFile() && forfile)) {
if (!FileMoveX(full, AppendFileName(path, newname)), flags)
if (!FileMoveX(full, AppendFileName(path, newname), flags))
return false;
}
}

View file

@ -150,7 +150,7 @@ bool DriveOpenClose(String drive, bool open)
return false;
}
HANDLE hDrive;
hDrive = CreateFile("\\\\.\\" + drive, GENERIC_READ || GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0);
hDrive = CreateFile("\\\\.\\" + drive, GENERIC_READ|GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0);
if (hDrive == INVALID_HANDLE_VALUE)
return false;
bool ret = false;

View file

@ -110,7 +110,7 @@ Image Window_SaveCapture(int64 windowId, int left, int top, int width, int heigh
return Null;
}
if(bmi.bmiHeader.biSizeImage <= 0)
bmi.bmiHeader.biSizeImage = bmi.bmiHeader.biWidth*labs(bmi.bmiHeader.biHeight)*
bmi.bmiHeader.biSizeImage = bmi.bmiHeader.biWidth*abs(bmi.bmiHeader.biHeight)*
(bmi.bmiHeader.biBitCount+7)/8;
bmi.bmiHeader.biCompression = BI_RGB;
bmi.bmiHeader.biHeight = -height;

View file

@ -1984,7 +1984,7 @@ void SetDesktopWallPaper(const char *path)
void SetDesktopWallPaper(char *path)
{
if (0 == SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, static_cast<LPVOID>(path), SPIF_UPDATEINIFILE || SPIF_SENDWININICHANGE))
if (0 == SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, static_cast<LPVOID>(path), SPIF_UPDATEINIFILE|SPIF_SENDWININICHANGE))
throw Exc(String(t_("Impossible to change Desktop bitmap")) + ": " + AsString(GetLastError()));
}
#endif

View file

@ -30,4 +30,4 @@ file
SysInfo.t,
Copying;
spellcheck_comments "EN-GB"
spellcheck_comments "EN-GB"