vbscript: Specify correct variable in memory allocation check (coverity).

This commit is contained in:
Frédéric Delanoy 2013-03-03 23:53:07 +01:00 committed by Alexandre Julliard
parent 1e7d7d0985
commit d0d269ab7f
1 changed files with 1 additions and 1 deletions

View File

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