Marcus Meissner : riched20: Fixed pointer to value out of scope (Coverity).
Alexandre Julliard
julliard at winehq.org
Mon Aug 20 14:16:17 CDT 2012
Module: wine
Branch: master
Commit: 3a2de10a9ccdb6a93930aa76e582d6bc397d0347
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3a2de10a9ccdb6a93930aa76e582d6bc397d0347
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Sat Aug 18 11:56:12 2012 +0200
riched20: Fixed pointer to value out of scope (Coverity).
---
dlls/riched20/editor.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index 18cd159..6221f4b 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -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;
More information about the wine-cvs
mailing list