Fix win32k build
authorAlex Ionescu <aionescu@gmail.com>
Sun, 8 Jan 2006 19:17:14 +0000 (19:17 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Sun, 8 Jan 2006 19:17:14 +0000 (19:17 +0000)
svn path=/trunk/; revision=20721

reactos/subsys/win32k/ntuser/ssec.c
reactos/subsys/win32k/objects/text.c
reactos/subsys/win32k/w32k.h

index 0f4c3a2..57256d0 100644 (file)
@@ -205,7 +205,7 @@ IntUserCreateSharedSection(IN PSHARED_SECTION_POOL SharedSectionPool,
    /* now allocate a real section */
 
    SectionSize.QuadPart = Size;
-   Status = MmCreateSection(&FreeSharedSection->SectionObject,
+   Status = MmCreateSection((PVOID)&FreeSharedSection->SectionObject,
                             SECTION_ALL_ACCESS,
                             NULL,
                             &SectionSize,
index 13fb957..fd23826 100644 (file)
@@ -281,7 +281,7 @@ IntGdiAddFontResource(PUNICODE_STRING FileName, DWORD Characteristics)
       return 0;
    }
 
-   Status = MmCreateSection(&SectionObject, SECTION_ALL_ACCESS,
+   Status = MmCreateSection((PVOID)&SectionObject, SECTION_ALL_ACCESS,
                             NULL, NULL, PAGE_READONLY,
                             0, FileHandle, NULL);
    if (!NT_SUCCESS(Status))
index 650d89b..4d05c51 100644 (file)
@@ -51,5 +51,9 @@ typedef struct _SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES;
 #include <win32k/ntgdibad.h>
 #include <ntgdi.h>
 
+/* For access to SECTION_OBJECT. FIXME: Once compatible with NT, use NDK! */
+#include <internal/mm.h>
+
 /* Internal Win32K Header */
 #include "include/win32k.h"
+