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

This commit is contained in:
Marcus Meissner 2012-08-18 11:56:12 +02:00 committed by Alexandre Julliard
parent 2461466ba0
commit 3a2de10a9c
1 changed files with 1 additions and 1 deletions

View File

@ -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;