src/video/windx5/SDL_dx5video.c
changeset 901 fd4a6847ddc0
parent 833 31fa08b36380
child 971 96671ebc50a4
--- a/src/video/windx5/SDL_dx5video.c	Thu May 27 22:57:30 2004 +0000
+++ b/src/video/windx5/SDL_dx5video.c	Fri Jun 25 05:24:50 2004 +0000
@@ -1323,11 +1323,7 @@
 		SetDDerror("DirectDrawSurface::QueryInterface", result);
 		return(NULL);
 	}
-	result = IDirectDrawSurface_Release(dd_surface1);
-	if ( result != DD_OK ) {
-		SetDDerror("DirectDrawSurface::Release", result);
-		return(NULL);
-	}
+	IDirectDrawSurface_Release(dd_surface1);
 
 	/* Get the format of the primary DirectDraw surface */
 	memset(&ddsd, 0, sizeof(ddsd));
@@ -1335,7 +1331,7 @@
 	ddsd.dwFlags = DDSD_PIXELFORMAT|DDSD_CAPS;
 	result = IDirectDrawSurface3_GetSurfaceDesc(SDL_primary, &ddsd);
 	if ( result != DD_OK ) {
-		SetDDerror("DirectDrawSurface::Release", result);
+		SetDDerror("DirectDrawSurface::GetSurfaceDesc", result);
 		return(NULL);
 	}
 	if ( ! (ddsd.ddpfPixelFormat.dwFlags&DDPF_RGB) ) {