Author: greatlrd
Date: Wed Dec 8 17:37:17 2010
New Revision: 49987
URL:
http://svn.reactos.org/svn/reactos?rev=49987&view=rev
Log:
fix a compile issue and scoure code cleanup
Modified:
branches/reactx/reactos/drivers/video/displays/framebuf/dd.c
branches/reactx/reactos/drivers/video/displays/framebuf/enable.c
branches/reactx/reactos/drivers/video/displays/framebuf/framebuf.spec
Modified: branches/reactx/reactos/drivers/video/displays/framebuf/dd.c
URL:
http://svn.reactos.org/svn/reactos/branches/reactx/reactos/drivers/video/di…
==============================================================================
--- branches/reactx/reactos/drivers/video/displays/framebuf/dd.c [iso-8859-1] (original)
+++ branches/reactx/reactos/drivers/video/displays/framebuf/dd.c [iso-8859-1] Wed Dec 8
17:37:17 2010
@@ -174,13 +174,13 @@
ShareMemory.ViewSize = 0;
ShareMemory.RequestedVirtualAddress = (VOID*) lpMapMemory->fpProcess;
- if (EngDeviceIoControl(ppdev->hDriver,
- IOCTL_VIDEO_UNSHARE_VIDEO_MEMORY,
- &ShareMemory,
- sizeof(VIDEO_SHARE_MEMORY),
- NULL,
- 0,
- &ReturnedDataLength))
+ if (EngDeviceIoControl( ppdev->hDriver,
+ IOCTL_VIDEO_UNSHARE_VIDEO_MEMORY,
+ &ShareMemory,
+ sizeof(VIDEO_SHARE_MEMORY),
+ NULL,
+ 0,
+ &ReturnedDataLength))
{
lpMapMemory->ddRVal = DDERR_GENERIC;
}
Modified: branches/reactx/reactos/drivers/video/displays/framebuf/enable.c
URL:
http://svn.reactos.org/svn/reactos/branches/reactx/reactos/drivers/video/di…
==============================================================================
--- branches/reactx/reactos/drivers/video/displays/framebuf/enable.c [iso-8859-1]
(original)
+++ branches/reactx/reactos/drivers/video/displays/framebuf/enable.c [iso-8859-1] Wed Dec
8 17:37:17 2010
@@ -78,13 +78,8 @@
if (SupportedVersions[i] == iEngineVersion )
{
pded->iDriverVersion = SupportedVersions[i];
+ status = TRUE;
- // Initialize sync semaphore.
- g_cs = EngCreateSemaphore();
- if (g_cs)
- {
- status = TRUE;
- }
break;
}
}
Modified: branches/reactx/reactos/drivers/video/displays/framebuf/framebuf.spec
URL:
http://svn.reactos.org/svn/reactos/branches/reactx/reactos/drivers/video/di…
==============================================================================
--- branches/reactx/reactos/drivers/video/displays/framebuf/framebuf.spec [iso-8859-1]
(original)
+++ branches/reactx/reactos/drivers/video/displays/framebuf/framebuf.spec [iso-8859-1] Wed
Dec 8 17:37:17 2010
@@ -1,1 +1,1 @@
-@ stdcall DriverEntry(long long ptr) = DrvEnableDriver
+@ stdcall DriverEntry(long long ptr) DrvEnableDriver