mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
set lpSurface on failure
This commit is contained in:
parent
1e9f3a0ab8
commit
91796c71c1
@ -7,7 +7,7 @@
|
||||
#define VERSION_MAJOR 6
|
||||
#define VERSION_MINOR 0
|
||||
#define VERSION_BUILD 0
|
||||
#define VERSION_REVISION 3
|
||||
#define VERSION_REVISION 4
|
||||
|
||||
#define VERSION VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD, VERSION_REVISION
|
||||
#define VERSION_STRING ver_str(VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD, VERSION_REVISION)
|
||||
|
@ -972,6 +972,8 @@ HRESULT dds_Lock(
|
||||
lpDestRect->right > This->width ||
|
||||
lpDestRect->bottom > This->height)
|
||||
{
|
||||
lpDDSurfaceDesc->lpSurface = NULL;
|
||||
|
||||
return DDERR_INVALIDPARAMS;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user