vbscript: Specify correct variable in memory allocation check (coverity)
Frédéric Delanoy
frederic.delanoy at gmail.com
Sun Mar 3 16:53:07 CST 2013
CID 989101
---
dlls/vbscript/vbregexp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/vbscript/vbregexp.c b/dlls/vbscript/vbregexp.c
index 0aaa140..5fefd6f 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;
}
--
1.8.1.1
More information about the wine-patches
mailing list