mirror of
https://github.com/reactos/reactos.git
synced 2025-05-16 15:50:24 +00:00
[WIN32SS] Do not try to call DevModes when it is NULL (mirror drivers). Patch by Victor Matovykh. CORE-11441 #resolve #comment Thanks!
svn path=/trunk/; revision=71882
This commit is contained in:
parent
0ecb33fb4b
commit
954b67bd37
1 changed files with 6 additions and 0 deletions
|
@ -122,6 +122,12 @@ LDEVOBJ_pdmiGetModes(
|
|||
|
||||
TRACE("LDEVOBJ_pdmiGetModes(%p, %p)\n", pldev, hDriver);
|
||||
|
||||
/* Mirror drivers may omit this function */
|
||||
if (!pldev->pfn.GetModes)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Call the driver to get the required size */
|
||||
cbSize = pldev->pfn.GetModes(hDriver, 0, NULL);
|
||||
if (!cbSize)
|
||||
|
|
Loading…
Reference in a new issue