Fix win32k build
Modified: trunk/reactos/subsys/win32k/ntuser/ssec.c
Modified: trunk/reactos/subsys/win32k/objects/text.c
Modified: trunk/reactos/subsys/win32k/w32k.h

Modified: trunk/reactos/subsys/win32k/ntuser/ssec.c
--- trunk/reactos/subsys/win32k/ntuser/ssec.c	2006-01-08 19:15:31 UTC (rev 20720)
+++ trunk/reactos/subsys/win32k/ntuser/ssec.c	2006-01-08 19:17:14 UTC (rev 20721)
@@ -205,7 +205,7 @@
    /* now allocate a real section */
 
    SectionSize.QuadPart = Size;
-   Status = MmCreateSection(&FreeSharedSection->SectionObject,
+   Status = MmCreateSection((PVOID)&FreeSharedSection->SectionObject,
                             SECTION_ALL_ACCESS,
                             NULL,
                             &SectionSize,

Modified: trunk/reactos/subsys/win32k/objects/text.c
--- trunk/reactos/subsys/win32k/objects/text.c	2006-01-08 19:15:31 UTC (rev 20720)
+++ trunk/reactos/subsys/win32k/objects/text.c	2006-01-08 19:17:14 UTC (rev 20721)
@@ -281,7 +281,7 @@
       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))

Modified: trunk/reactos/subsys/win32k/w32k.h
--- trunk/reactos/subsys/win32k/w32k.h	2006-01-08 19:15:31 UTC (rev 20720)
+++ trunk/reactos/subsys/win32k/w32k.h	2006-01-08 19:17:14 UTC (rev 20721)
@@ -51,5 +51,9 @@
 #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"
+