mirror of
https://github.com/reactos/reactos.git
synced 2025-07-27 07:41:51 +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);
|
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 */
|
/* Call the driver to get the required size */
|
||||||
cbSize = pldev->pfn.GetModes(hDriver, 0, NULL);
|
cbSize = pldev->pfn.GetModes(hDriver, 0, NULL);
|
||||||
if (!cbSize)
|
if (!cbSize)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue