From 9358255f84b793404050d174734b135767f87cc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Thu, 8 Apr 2004 15:36:36 +0000 Subject: [PATCH] HwResetHw can be (and sometimes is) NULL svn path=/trunk/; revision=9030 --- reactos/drivers/video/videoprt/dispatch.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/reactos/drivers/video/videoprt/dispatch.c b/reactos/drivers/video/videoprt/dispatch.c index 91ffe8635a0..96b684f209d 100644 --- a/reactos/drivers/video/videoprt/dispatch.c +++ b/reactos/drivers/video/videoprt/dispatch.c @@ -18,7 +18,7 @@ * If not, write to the Free Software Foundation, * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - * $Id: dispatch.c,v 1.3 2004/04/08 09:43:55 navaraf Exp $ + * $Id: dispatch.c,v 1.4 2004/04/08 15:36:36 gvg Exp $ */ #include "videoprt.h" @@ -49,9 +49,8 @@ IntVideoPortResetDisplayParameters(ULONG Columns, ULONG Rows) DriverExtension = ResetDisplayParametersDeviceExtension->DriverExtension; - ASSERT(DriverExtension->InitializationData.HwResetHw != NULL); - - if (!DriverExtension->InitializationData.HwResetHw( + if (NULL == DriverExtension->InitializationData.HwResetHw || + !DriverExtension->InitializationData.HwResetHw( &ResetDisplayParametersDeviceExtension->MiniPortDeviceExtension, Columns, Rows)) {