Commit 4a109c78 authored by Alex Villacís Lasso's avatar Alex Villacís Lasso Committed by Alexandre Julliard

Prevent crash on IDirectMusicLoaderResourceStream_IStream_Read.

parent 31695b54
...@@ -390,9 +390,9 @@ HRESULT WINAPI IDirectMusicLoaderResourceStream_IStream_Read (LPSTREAM iface, vo ...@@ -390,9 +390,9 @@ HRESULT WINAPI IDirectMusicLoaderResourceStream_IStream_Read (LPSTREAM iface, vo
memcpy (pv, pByte, cb); memcpy (pv, pByte, cb);
This->llPos += cb; /* move pointer */ This->llPos += cb; /* move pointer */
/* FIXME: error checking would be nice */ /* FIXME: error checking would be nice */
*pcbRead = cb; if (pcbRead) *pcbRead = cb;
TRACE_(dmfileraw)(": data (size = 0x%08lX): '%s'\n", *pcbRead, debugstr_an(pv, *pcbRead)); TRACE_(dmfileraw)(": data (size = 0x%08lX): '%s'\n", cb, debugstr_an(pv, *pcbRead));
return S_OK; return S_OK;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment