Removed the Release in case of error as we do not AddRef anymore.
This commit is contained in:
parent
c5648f2be3
commit
ef275bbb99
|
@ -115,7 +115,6 @@ HRESULT WINAPI Xlib_IDirectDrawSurface4Impl_Lock(
|
||||||
(lprect->bottom < 0) ||
|
(lprect->bottom < 0) ||
|
||||||
(lprect->right < 0)) {
|
(lprect->right < 0)) {
|
||||||
ERR(" Negative values in LPRECT !!!\n");
|
ERR(" Negative values in LPRECT !!!\n");
|
||||||
IDirectDrawSurface4_Release(iface);
|
|
||||||
return DDERR_INVALIDPARAMS;
|
return DDERR_INVALIDPARAMS;
|
||||||
}
|
}
|
||||||
lpddsd->u1.lpSurface=(LPVOID)((char*)This->s.surface_desc.u1.lpSurface+
|
lpddsd->u1.lpSurface=(LPVOID)((char*)This->s.surface_desc.u1.lpSurface+
|
||||||
|
|
Loading…
Reference in New Issue