Author: fireball
Date: Wed Dec 15 20:12:03 2010
New Revision: 50032

URL: http://svn.reactos.org/svn/reactos?rev=50032&view=rev
Log:
[NTOS]
- Roel Messiant: Fix NtQueryObject to return the required buffer size if the 
buffer provided was too small. Unimplemented paths behaviour is preserved.

Modified:
    trunk/reactos/ntoskrnl/ob/oblife.c

Modified: trunk/reactos/ntoskrnl/ob/oblife.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ob/oblife.c?rev=50032&r1=50031&r2=50032&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/ob/oblife.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ob/oblife.c [iso-8859-1] Wed Dec 15 20:12:03 2010
@@ -1549,6 +1549,7 @@
             /* Information about all types */
             case ObjectTypesInformation:
                 DPRINT1("NOT IMPLEMENTED!\n");
+                InfoLength = Length;
                 Status = STATUS_NOT_IMPLEMENTED;
                 break;
 
@@ -1580,6 +1581,7 @@
             default:
 
                 /* Fail it */
+                InfoLength = Length;
                 Status = STATUS_INVALID_INFO_CLASS;
                 break;
         }
@@ -1588,7 +1590,7 @@
         if (ResultLength)
         {
             /* Write the length */
-            *ResultLength = Length;
+            *ResultLength = InfoLength;
         }
     }
     _SEH2_EXCEPT(ExSystemExceptionFilter())


Reply via email to