set lpSurface on failure
This commit is contained in:
parent
1e9f3a0ab8
commit
91796c71c1
2 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue