set lpSurface on failure
This commit is contained in:
		
							parent
							
								
									1e9f3a0ab8
								
							
						
					
					
						commit
						91796c71c1
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		|  | @ -972,6 +972,8 @@ HRESULT dds_Lock( | |||
|             lpDestRect->right > This->width || | ||||
|             lpDestRect->bottom > This->height) | ||||
|         { | ||||
|             lpDDSurfaceDesc->lpSurface = NULL; | ||||
| 
 | ||||
|             return DDERR_INVALIDPARAMS; | ||||
|         } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue