summaryrefslogtreecommitdiff
path: root/shell/source
diff options
context:
space:
mode:
Diffstat (limited to 'shell/source')
-rw-r--r--shell/source/win32/shlxthandler/infotips/infotips.cxx2
-rw-r--r--shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/shell/source/win32/shlxthandler/infotips/infotips.cxx b/shell/source/win32/shlxthandler/infotips/infotips.cxx
index 31f9bc56e144..aff286d7b68c 100644
--- a/shell/source/win32/shlxthandler/infotips/infotips.cxx
+++ b/shell/source/win32/shlxthandler/infotips/infotips.cxx
@@ -150,7 +150,7 @@ std::wstring formatSizeOfFile( DWORD dwSize )
char *buffer=nullptr;
int decimal, sign;
- double dFileSize = (double)dwSize/(double)KB;
+ double dFileSize = (double)dwSize/KB;
buffer = _fcvt( dFileSize, 1, &decimal, &sign );
diff --git a/shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx b/shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx
index 49adb0aa95ac..76fc42927777 100644
--- a/shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx
+++ b/shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx
@@ -54,7 +54,7 @@ unsigned long BufferStream::sread (unsigned char *buf, unsigned long size)
hr = stream->Read (buf, size, &newsize);
if (hr == S_OK)
- return (unsigned long)newsize;
+ return newsize;
else
return (unsigned long)0;
}