1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-25 01:57:47 +01:00

set lpSurface on failure

This commit is contained in:
FunkyFr3sh 2023-11-19 02:25:16 +01:00
parent 1e9f3a0ab8
commit 91796c71c1
2 changed files with 3 additions and 1 deletions

View File

@ -7,7 +7,7 @@
#define VERSION_MAJOR 6 #define VERSION_MAJOR 6
#define VERSION_MINOR 0 #define VERSION_MINOR 0
#define VERSION_BUILD 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 VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD, VERSION_REVISION
#define VERSION_STRING ver_str(VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD, VERSION_REVISION) #define VERSION_STRING ver_str(VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD, VERSION_REVISION)

View File

@ -972,6 +972,8 @@ HRESULT dds_Lock(
lpDestRect->right > This->width || lpDestRect->right > This->width ||
lpDestRect->bottom > This->height) lpDestRect->bottom > This->height)
{ {
lpDDSurfaceDesc->lpSurface = NULL;
return DDERR_INVALIDPARAMS; return DDERR_INVALIDPARAMS;
} }