fix so vs10 compiles without complaining

This commit is contained in:
jez 2010-05-19 20:19:31 +01:00
parent 4a79db620c
commit a856f2ed7b

View file

@ -825,7 +825,7 @@ class msxml2_wrapper :
virtual HRESULT __stdcall Read(void* pv, ULONG cb, ULONG* pcbRead)
{
source_.getByteStream()->read(reinterpret_cast<char*>(pv), cb);
*pcbRead = source_.getByteStream()->gcount();
*pcbRead = static_cast<ULONG>(source_.getByteStream()->gcount());
return S_OK;
} // Read