Author: greatlrd
Date: Fri Mar 16 12:01:40 2007
New Revision: 26111
URL:
http://svn.reactos.org/svn/reactos?rev=26111&view=rev
Log:
fixing smaller bugs in NtGdiDdQueryDirectDrawObject,
like some return value are right
Modified:
trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c
Modified: trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c Fri Mar 16 12:01:40 2007
@@ -300,7 +300,7 @@
DPRINT1("NtGdiDdQueryDirectDrawObject\n");
if (hDirectDrawLocal == NULL)
{
- return Ret;
+ return FALSE;
}
pDirectDraw = GDIOBJ_LockObj(DdHandleTable, hDirectDrawLocal,
@@ -308,7 +308,7 @@
if (!pDirectDraw)
{
- return Ret;
+ return FALSE;
}
/*
@@ -332,14 +332,14 @@
DPRINT1("GDIOBJ_UnlockObjByPtr and SetLastNtError\n");
SetLastNtError(Status);
GDIOBJ_UnlockObjByPtr(DdHandleTable, pDirectDraw);
- return Ret;
+ return FALSE;
}
}
else
{
DPRINT1("GDIOBJ_UnlockObjByPtr\n");
GDIOBJ_UnlockObjByPtr(DdHandleTable, pDirectDraw);
- return Ret;
+ return FALSE;
}
@@ -366,14 +366,14 @@
DPRINT1("GDIOBJ_UnlockObjByPtr and SetLastNtError\n");
SetLastNtError(Status);
GDIOBJ_UnlockObjByPtr(DdHandleTable, pDirectDraw);
- return Ret;
+ return FALSE;
}
}
else
{
DPRINT1("GDIOBJ_UnlockObjByPtr\n");
GDIOBJ_UnlockObjByPtr(DdHandleTable, pDirectDraw);
- return Ret;
+ return FALSE;
}
/*
@@ -400,7 +400,7 @@
DPRINT1("GDIOBJ_UnlockObjByPtr and SetLastNtError\n");
SetLastNtError(Status);
GDIOBJ_UnlockObjByPtr(DdHandleTable, pDirectDraw);
- return Ret;
+ return FALSE;
}
}
}
@@ -408,7 +408,7 @@
{
DPRINT1("GDIOBJ_UnlockObjByPtr\n");
GDIOBJ_UnlockObjByPtr(DdHandleTable, pDirectDraw);
- return Ret;
+ return FALSE;
}
/*
@@ -451,7 +451,7 @@
DPRINT1("GDIOBJ_UnlockObjByPtr and SetLastNtError\n");
SetLastNtError(Status);
GDIOBJ_UnlockObjByPtr(DdHandleTable, pDirectDraw);
- return Ret;
+ return FALSE;
}
}
}
@@ -459,7 +459,7 @@
{
DPRINT1("GDIOBJ_UnlockObjByPtr\n");
GDIOBJ_UnlockObjByPtr(DdHandleTable, pDirectDraw);
- return Ret;
+ return FALSE;
}
/*
@@ -487,7 +487,7 @@
DPRINT1("GDIOBJ_UnlockObjByPtr and SetLastNtError\n");
SetLastNtError(Status);
GDIOBJ_UnlockObjByPtr(DdHandleTable, pDirectDraw);
- return Ret;
+ return FALSE;
}
}
}
@@ -495,10 +495,8 @@
{
DPRINT1("GDIOBJ_UnlockObjByPtr\n");
GDIOBJ_UnlockObjByPtr(DdHandleTable, pDirectDraw);
- return Ret;
- }
-
- DPRINT1("next\n");
+ return FALSE;
+ }
_SEH_TRY
{