File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -94,8 +94,8 @@ EngpHasVgaDriver(
9494 return FALSE;
9595 }
9696
97- /* Device is using VGA driver if service name starts with 'VGA ' (case insensitive) */
98- return (_wcsnicmp (awcServiceName , L"VGA" , 3 ) == 0 );
97+ /* Device is using VGA driver if service name is 'VGASave ' (case insensitive) */
98+ return (_wcsicmp (awcServiceName , L"VGASave" ) == 0 );
9999}
100100
101101/*
@@ -242,7 +242,7 @@ EngpUpdateGraphicsDeviceList(VOID)
242242 if (pGraphicsDevice -> StateFlags & DISPLAY_DEVICE_VGA_COMPATIBLE )
243243 {
244244 /* Save this as the VGA adapter */
245- if (!gpVgaGraphicsDevice )
245+ if (!gpVgaGraphicsDevice || ! EngpHasVgaDriver ( gpVgaGraphicsDevice ) )
246246 {
247247 gpVgaGraphicsDevice = pGraphicsDevice ;
248248 TRACE ("gpVgaGraphicsDevice = %p\n" , gpVgaGraphicsDevice );
You can’t perform that action at this time.
0 commit comments