X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=subsystems%2Fwin32%2Fwin32k%2Feng%2Fldevobj.c;h=0e6c0eea540896c724330e6da773be121decf934;hp=6296a01b385e3adb0086979254b64a663a81dda4;hb=406dfdbc870f3a6874c0959a87428c94f7526d3b;hpb=c4c880d59c726905c343733fd16377e924921e52 diff --git a/subsystems/win32/win32k/eng/ldevobj.c b/subsystems/win32/win32k/eng/ldevobj.c index 6296a01b385..0e6c0eea540 100644 --- a/subsystems/win32/win32k/eng/ldevobj.c +++ b/subsystems/win32/win32k/eng/ldevobj.c @@ -26,7 +26,8 @@ LDEVOBJ *gpldevWin32k = NULL; /** Private functions *********************************************************/ -BOOL +INIT_FUNCTION +NTSTATUS NTAPI InitLDEVImpl() { @@ -34,7 +35,7 @@ InitLDEVImpl() ghsemLDEVList = EngCreateSemaphore(); if (!ghsemLDEVList) { - return FALSE; + return STATUS_INSUFFICIENT_RESOURCES; } /* Allocate a LDEVOBJ for win32k */ @@ -44,7 +45,7 @@ InitLDEVImpl() GDITAG_LDEV); if (!gpldevWin32k) { - return FALSE; + return STATUS_NO_MEMORY; } /* Initialize the LDEVOBJ for win32k */ @@ -62,7 +63,7 @@ InitLDEVImpl() gpldevWin32k->pGdiDriverInfo->ExportSectionPointer = NULL; gpldevWin32k->pGdiDriverInfo->ImageLength = 0; // FIXME; - return TRUE; + return STATUS_SUCCESS; } PLDEVOBJ