oleacc: Free the mapping on error (Coverity).

This commit is contained in:
Marcus Meissner 2014-11-30 13:09:23 +01:00 committed by Alexandre Julliard
parent 2bfb3ef624
commit 9ad8aff7e1
1 changed files with 3 additions and 1 deletions

View File

@ -219,8 +219,10 @@ HRESULT WINAPI ObjectFromLresult( LRESULT result, REFIID riid, WPARAM wParam, vo
return E_FAIL;
data = GlobalAlloc(GMEM_FIXED, size);
if(!data)
if(!data) {
UnmapViewOfFile(view);
return E_OUTOFMEMORY;
}
memcpy(data, view, size);
UnmapViewOfFile(view);