Commit 9ad8aff7 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

oleacc: Free the mapping on error (Coverity).

parent 2bfb3ef6
...@@ -219,8 +219,10 @@ HRESULT WINAPI ObjectFromLresult( LRESULT result, REFIID riid, WPARAM wParam, vo ...@@ -219,8 +219,10 @@ HRESULT WINAPI ObjectFromLresult( LRESULT result, REFIID riid, WPARAM wParam, vo
return E_FAIL; return E_FAIL;
data = GlobalAlloc(GMEM_FIXED, size); data = GlobalAlloc(GMEM_FIXED, size);
if(!data) if(!data) {
UnmapViewOfFile(view);
return E_OUTOFMEMORY; return E_OUTOFMEMORY;
}
memcpy(data, view, size); memcpy(data, view, size);
UnmapViewOfFile(view); UnmapViewOfFile(view);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment