Update miniwin/miniwin/src/miniwin_ddsurface.cpp

Co-authored-by: Anders Jenbo <anders@jenbo.dk>
This commit is contained in:
Anonymous Maarten 2025-05-16 17:37:03 +00:00 committed by GitHub
parent 080ccc100c
commit 63adb2f02a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -205,9 +205,9 @@ HRESULT DirectDrawSurfaceImpl::SetPalette(LPDIRECTDRAWPALETTE lpDDPalette)
HRESULT DirectDrawSurfaceImpl::Unlock(LPVOID lpSurfaceData) HRESULT DirectDrawSurfaceImpl::Unlock(LPVOID lpSurfaceData)
{ {
if (texture) { if (!texture) {
return DDERR_GENERIC;
}
SDL_UnlockTexture(texture); SDL_UnlockTexture(texture);
return DD_OK; return DD_OK;
} }
return DDERR_GENERIC;
}