Commit 3a2de10a authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

riched20: Fixed pointer to value out of scope (Coverity).

parent 2461466b
......@@ -292,6 +292,7 @@ static LRESULT ME_StreamInText(ME_TextEditor *editor, DWORD dwFormat, ME_InStrea
do {
LONG nWideChars = 0;
WCHAR wszText[STREAMIN_BUFFER_SIZE+1];
if (!stream->dwSize)
{
......@@ -305,7 +306,6 @@ static LRESULT ME_StreamInText(ME_TextEditor *editor, DWORD dwFormat, ME_InStrea
if (!(dwFormat & SF_UNICODE))
{
WCHAR wszText[STREAMIN_BUFFER_SIZE+1];
char * buf = stream->buffer;
DWORD size = stream->dwSize;
DWORD cp = CP_ACP;
......
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