=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: vbscript: Specify correct variable in memory allocation check (coverity).
Alexandre Julliard
julliard at winehq.org
Mon Mar 4 13:23:39 CST 2013
Module: wine
Branch: master
Commit: d0d269ab7fd1fb424dc7e5007f730451553abc6d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d0d269ab7fd1fb424dc7e5007f730451553abc6d
Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date: Sun Mar 3 23:53:07 2013 +0100
vbscript: Specify correct variable in memory allocation check (coverity).
---
dlls/vbscript/vbregexp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/vbscript/vbregexp.c b/dlls/vbscript/vbregexp.c
index 02e63ab..f3fb874 100644
--- a/dlls/vbscript/vbregexp.c
+++ b/dlls/vbscript/vbregexp.c
@@ -314,7 +314,7 @@ static HRESULT create_sub_matches(DWORD pos, match_state_t *result, SubMatches *
ret->result = result;
if(result) {
ret->match = heap_alloc((result->match_len+1) * sizeof(WCHAR));
- if(!ret) {
+ if(!ret->match) {
heap_free(ret);
return E_OUTOFMEMORY;
}
More information about the wine-cvs
mailing list