Author: greatlrd
Date: Wed Jul 19 04:39:03 2006
New Revision: 23163
URL:
http://svn.reactos.org/svn/reactos?rev=23163&view=rev
Log:
Fixing small bug in DdCreateSurface
Modified:
trunk/reactos/drivers/video/displays/framebuf/dd.c
trunk/reactos/drivers/video/displays/framebuf/framebuf.h
Modified: trunk/reactos/drivers/video/displays/framebuf/dd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/displays/fra…
==============================================================================
--- trunk/reactos/drivers/video/displays/framebuf/dd.c (original)
+++ trunk/reactos/drivers/video/displays/framebuf/dd.c Wed Jul 19 04:39:03 2006
@@ -68,11 +68,11 @@
}
DWORD CALLBACK
-DdCreateSurface(LPDDHAL_CREATESURFACEDATA pcsd)
+DdCreateSurface(PDD_CREATESURFACEDATA pcsd)
{
int i;
- if (pcsd->dwSCnt == 1)
+ if (pcsd->dwSCnt < 1)
{
pcsd->ddRVal = DDERR_GENERIC;
return DDHAL_DRIVER_NOTHANDLED;
Modified: trunk/reactos/drivers/video/displays/framebuf/framebuf.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/displays/fra…
==============================================================================
--- trunk/reactos/drivers/video/displays/framebuf/framebuf.h (original)
+++ trunk/reactos/drivers/video/displays/framebuf/framebuf.h Wed Jul 19 04:39:03 2006
@@ -82,7 +82,7 @@
DdCanCreateSurface( LPDDHAL_CANCREATESURFACEDATA pccsd );
DWORD CALLBACK
-DdCreateSurface(LPDDHAL_CREATESURFACEDATA pcsd);
+DdCreateSurface(PDD_CREATESURFACEDATA pcsd);
VOID STDCALL
DrvDisableDirectDraw(