Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2238)

Unified Diff: core/fxcrt/fxcrt_windows.cpp

Issue 2450183003: Fix some FX_BOOL / int noise in fxcrt. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: core/fxcrt/fxcrt_windows.cpp
diff --git a/core/fxcrt/fxcrt_windows.cpp b/core/fxcrt/fxcrt_windows.cpp
index ec16373f02dafa3b3d57c97dd13d94de010d2e8a..b40f06ecbae890aae5841991d775d745552e1609 100644
--- a/core/fxcrt/fxcrt_windows.cpp
+++ b/core/fxcrt/fxcrt_windows.cpp
@@ -160,12 +160,12 @@ FX_BOOL CFXCRT_FileAccess_Win64::Flush() {
if (!m_hFile) {
return FALSE;
}
- return ::FlushFileBuffers(m_hFile);
+ return !!::FlushFileBuffers(m_hFile);
}
FX_BOOL CFXCRT_FileAccess_Win64::Truncate(FX_FILESIZE szFile) {
if (SetPosition(szFile) == (FX_FILESIZE)-1) {
return FALSE;
}
- return ::SetEndOfFile(m_hFile);
+ return !!::SetEndOfFile(m_hFile);
}
#endif

Powered by Google App Engine
This is Rietveld 408576698