mirror of
https://github.com/reactos/wine.git
synced 2025-02-16 10:59:45 +00:00
oleacc: Free the mapping on error (Coverity).
This commit is contained in:
parent
2bfb3ef624
commit
9ad8aff7e1
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user