Author: mjansen
Date: Sun Jul 10 14:23:58 2016
New Revision: 71882
URL:
http://svn.reactos.org/svn/reactos?rev=71882&view=rev
Log:
[WIN32SS] Do not try to call DevModes when it is NULL (mirror drivers). Patch by Victor
Matovykh. CORE-11441 #resolve #comment Thanks!
Modified:
trunk/reactos/win32ss/gdi/eng/ldevobj.c
Modified: trunk/reactos/win32ss/gdi/eng/ldevobj.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/eng/ldevobj.c?…
==============================================================================
--- trunk/reactos/win32ss/gdi/eng/ldevobj.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/eng/ldevobj.c [iso-8859-1] Sun Jul 10 14:23:58 2016
@@ -122,6 +122,12 @@
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)