From e61c2222550342457e93372aa6b03ea299e53722 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Fri, 13 Jul 2012 12:26:51 +0200 Subject: warning C4267: conversion from 'size_t' to 'DWORD' Change-Id: Idd467f2963099e2ae6bb76f405124dfa32c8cc9a --- shell/source/win32/shlxthandler/ooofilt/ooofilt.cxx | 4 ++-- shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'shell/source/win32') diff --git a/shell/source/win32/shlxthandler/ooofilt/ooofilt.cxx b/shell/source/win32/shlxthandler/ooofilt/ooofilt.cxx index 1e7499edd6ab..9f37b3b62c0d 100644 --- a/shell/source/win32/shlxthandler/ooofilt/ooofilt.cxx +++ b/shell/source/win32/shlxthandler/ooofilt/ooofilt.cxx @@ -341,7 +341,7 @@ SCODE STDMETHODCALLTYPE COooFilter::GetChunk(STAT_CHUNK * pStat) continue; } m_pwsBuffer = m_pContentReader -> getChunkBuffer()[m_ChunkPosition].second; - m_ulUnicodeBufferLen = m_pwsBuffer.length(); + m_ulUnicodeBufferLen = static_cast(m_pwsBuffer.length()); DWORD ChunkLCID = LocaleSetToLCID( m_pContentReader -> getChunkBuffer()[m_ChunkPosition].first ); // Set chunk description pStat->idChunk = m_ulChunkID; @@ -1241,7 +1241,7 @@ namespace /* private */ 0, REG_MULTI_SZ, reinterpret_cast(DllsToRegisterList), - DllList.length() + 2); + static_cast(DllList.length() + 2)); RegCloseKey(hSubKey); } diff --git a/shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx b/shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx index 2312c26dc360..45918f5f5d81 100644 --- a/shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx +++ b/shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx @@ -247,7 +247,7 @@ HRESULT STDMETHODCALLTYPE StreamOnZipBuffer::Stat(STATSTG *pstatstg, DWORD grfSt pstatstg->type = STGTY_LOCKBYTES; ULARGE_INTEGER uli; - uli.LowPart = ref_zip_buffer_.size(); + uli.LowPart = static_cast(ref_zip_buffer_.size()); uli.HighPart = 0; pstatstg->cbSize = uli; -- cgit