[ros-diffs] [greatlrd] 30682: Implement DirectDrawEnumerateW, DirectDrawEnumerateExW they always return DDERR_UNSUPPORTED

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Thu Nov 22 20:36:17 CET 2007


Author: greatlrd
Date: Thu Nov 22 22:36:16 2007
New Revision: 30682

URL: http://svn.reactos.org/svn/reactos?rev=30682&view=rev
Log:
Implement DirectDrawEnumerateW, DirectDrawEnumerateExW they always return DDERR_UNSUPPORTED

Modified:
    trunk/reactos/dll/directx/ddraw/main.c

Modified: trunk/reactos/dll/directx/ddraw/main.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/ddraw/main.c?rev=30682&r1=30681&r2=30682&view=diff
==============================================================================
--- trunk/reactos/dll/directx/ddraw/main.c (original)
+++ trunk/reactos/dll/directx/ddraw/main.c Thu Nov 22 22:36:16 2007
@@ -204,17 +204,6 @@
      return retValue;
 }
 
-
-/*
- * UNIMPLEMENT
- */
-
-HRESULT WINAPI DirectDrawEnumerateW(LPDDENUMCALLBACKW lpCallback,
-                                    LPVOID lpContext)
-{
-    DX_STUB;
-}
-
 /*
  * UNIMPLEMENT
  */
@@ -255,9 +244,13 @@
     return DDERR_UNSUPPORTED;
 }
 
-/*
- * UNIMPLEMENT
- */
+HRESULT
+WINAPI
+DirectDrawEnumerateW(LPDDENUMCALLBACKW lpCallback,
+                                    LPVOID lpContext)
+{
+    return DDERR_UNSUPPORTED;
+}
 
 HRESULT
 WINAPI
@@ -265,9 +258,11 @@
                        LPVOID lpContext,
                        DWORD dwFlags)
 {
-     /* Note this function are not longer supported in ddraw in windows 2003 */
-     DX_STUB;
-}
+    return DDERR_UNSUPPORTED;
+}
+
+
+
 
 /*
    See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/
@@ -376,7 +371,7 @@
               (dp2command->bCommand >= D3DDP2OP_LINELIST) )  // dp2command->bCommand  >= with 15 to 255
            {
                /* set error code for command 0 to 3, 8 and 15 to 255 */
-               retCode = E_FAIL;
+               retCode = DDERR_INVALIDPARAMS;
            }
            else
            {   /* set error code for 4 - 7, 9 - 12, 14  */




More information about the Ros-diffs mailing list