Fix wrong syntax, missing file and non existing module in makefile.
Thanks to Salamander and Usurp.
Modified: trunk/reactos/lib/ddraw/ddraw.xml
Modified: trunk/reactos/lib/ddraw/main/ddraw.c
Modified: trunk/reactos/lib/ddraw/main/surface.c
_____
Modified: trunk/reactos/lib/ddraw/ddraw.xml
--- trunk/reactos/lib/ddraw/ddraw.xml 2005-08-08 13:29:50 UTC (rev
17199)
+++ trunk/reactos/lib/ddraw/ddraw.xml 2005-08-08 14:19:20 UTC (rev
17200)
@@ -13,7 +13,6 @@
<library>d3d8thk</library>
<library>dxguid</library>
<library>ole32</library>
- <library>dciman32</library>
<file>main.c</file>
<file>regsvr.c</file>
_____
Modified: trunk/reactos/lib/ddraw/main/ddraw.c
--- trunk/reactos/lib/ddraw/main/ddraw.c 2005-08-08 13:29:50 UTC
(rev 17199)
+++ trunk/reactos/lib/ddraw/main/ddraw.c 2005-08-08 14:19:20 UTC
(rev 17200)
@@ -86,7 +86,7 @@
IDirectDrawImpl* This = (IDirectDrawImpl*)iface;
// this only for exclusive mode
- if(!This->cooperative_level & DDSCL_EXCLUSIVE)
+ if(!(This->cooperative_level & DDSCL_EXCLUSIVE))
return DDERR_NOEXCLUSIVEMODE;
// change the resolution using normal WinAPI function
_____
Modified: trunk/reactos/lib/ddraw/main/surface.c
--- trunk/reactos/lib/ddraw/main/surface.c 2005-08-08 13:29:50 UTC
(rev 17199)
+++ trunk/reactos/lib/ddraw/main/surface.c 2005-08-08 14:19:20 UTC
(rev 17200)
@@ -21,7 +21,7 @@
if(sizeof(DDSURFACEDESC2) != pDDSD->dwSize)
return DDERR_UNSUPPORTED;
- if(!pDDSD->dwFlags & DDSD_CAPS)
+ if(!(pDDSD->dwFlags & DDSD_CAPS))
return DDERR_INVALIDPARAMS;
This->owner = (IDirectDrawImpl*)pDD;
Show replies by date