mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 17:05:44 +00:00
- Cleaned up IntVideoPortResetDisplayParameters a bit.
svn path=/trunk/; revision=9762
This commit is contained in:
parent
7d0c7ca853
commit
b688080896
1 changed files with 10 additions and 8 deletions
|
@ -18,7 +18,7 @@
|
||||||
* If not, write to the Free Software Foundation,
|
* If not, write to the Free Software Foundation,
|
||||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*
|
*
|
||||||
* $Id: dispatch.c,v 1.5 2004/04/18 12:59:14 hbirr Exp $
|
* $Id: dispatch.c,v 1.6 2004/06/20 16:05:47 navaraf Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "videoprt.h"
|
#include "videoprt.h"
|
||||||
|
@ -49,17 +49,19 @@ IntVideoPortResetDisplayParameters(ULONG Columns, ULONG Rows)
|
||||||
|
|
||||||
DriverExtension = ResetDisplayParametersDeviceExtension->DriverExtension;
|
DriverExtension = ResetDisplayParametersDeviceExtension->DriverExtension;
|
||||||
|
|
||||||
if (NULL == DriverExtension->InitializationData.HwResetHw ||
|
if (DriverExtension->InitializationData.HwResetHw != NULL)
|
||||||
!DriverExtension->InitializationData.HwResetHw(
|
{
|
||||||
|
if (DriverExtension->InitializationData.HwResetHw(
|
||||||
&ResetDisplayParametersDeviceExtension->MiniPortDeviceExtension,
|
&ResetDisplayParametersDeviceExtension->MiniPortDeviceExtension,
|
||||||
Columns, Rows))
|
Columns, Rows))
|
||||||
{
|
{
|
||||||
ResetDisplayParametersDeviceExtension = NULL;
|
ResetDisplayParametersDeviceExtension = NULL;
|
||||||
return FALSE;
|
return TRUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ResetDisplayParametersDeviceExtension = NULL;
|
ResetDisplayParametersDeviceExtension = NULL;
|
||||||
return TRUE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS STDCALL
|
NTSTATUS STDCALL
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue