use ZwQueryInformationFile instead of NtQueryInformationFile in
IntGdiAddFontResource because we're passing kernel pointers in UserMode
Modified: trunk/reactos/subsys/win32k/objects/text.c
_____
Modified: trunk/reactos/subsys/win32k/objects/text.c
--- trunk/reactos/subsys/win32k/objects/text.c 2005-07-24 09:11:30 UTC
(rev 16708)
+++ trunk/reactos/subsys/win32k/objects/text.c 2005-07-24 09:20:43 UTC
(rev 16709)
@@ -282,7 +282,7 @@
/* Get the size of the file */
- Status = NtQueryInformationFile(
+ Status = ZwQueryInformationFile(
FileHandle,
&Iosb,
&FileStdInfo,
use ZwQueryInformationFile and ZwSetInformationFile instead of the Nt
version since we're passing kernel pointers to them which cause a probe
failure in UserMode. This should fix the 1st stage setup
Modified: trunk/reactos/ntoskrnl/io/file.c
Modified: trunk/reactos/ntoskrnl/mm/section.c
_____
Modified: trunk/reactos/ntoskrnl/io/file.c
--- trunk/reactos/ntoskrnl/io/file.c 2005-07-23 17:47:28 UTC (rev
16707)
+++ trunk/reactos/ntoskrnl/io/file.c 2005-07-24 09:11:30 UTC (rev
16708)
@@ -3039,7 +3039,15 @@
PreviousMode,
FileObject->Flags & FO_ALERTABLE_IO,
NULL);
- Status = IoStatusBlock->Status;
+ _SEH_TRY
+ {
+ Status = IoStatusBlock->Status;
+ }
+ _SEH_HANDLE
+ {
+ Status = _SEH_GetExceptionCode();
+ }
+ _SEH_END;
}
else
{
@@ -3048,7 +3056,15 @@
PreviousMode,
FileObject->Flags & FO_ALERTABLE_IO,
NULL);
- Status = FileObject->FinalStatus;
+ _SEH_TRY
+ {
+ Status = FileObject->FinalStatus;
+ }
+ _SEH_HANDLE
+ {
+ Status = _SEH_GetExceptionCode();
+ }
+ _SEH_END;
}
}
_____
Modified: trunk/reactos/ntoskrnl/mm/section.c
--- trunk/reactos/ntoskrnl/mm/section.c 2005-07-23 17:47:28 UTC (rev
16707)
+++ trunk/reactos/ntoskrnl/mm/section.c 2005-07-24 09:11:30 UTC (rev
16708)
@@ -2308,7 +2308,7 @@
* (as in case of the EXT2FS driver by Manoj Paul Joseph where the
* standard file information is filled on first request).
*/
- Status = NtQueryInformationFile(FileHandle,
+ Status = ZwQueryInformationFile(FileHandle,
&Iosb,
&FileInfo,
sizeof(FILE_STANDARD_INFORMATION),
@@ -2342,7 +2342,7 @@
if (MaximumSize.QuadPart > FileInfo.EndOfFile.QuadPart)
{
- Status = NtSetInformationFile(FileHandle,
+ Status = ZwSetInformationFile(FileHandle,
&Iosb,
&MaximumSize,
sizeof(LARGE_INTEGER),
dont try to buid font.c as its a empty file for now
Modified: trunk/reactos/subsys/win32k/win32k.xml
_____
Modified: trunk/reactos/subsys/win32k/win32k.xml
--- trunk/reactos/subsys/win32k/win32k.xml 2005-07-23 17:45:41 UTC
(rev 16706)
+++ trunk/reactos/subsys/win32k/win32k.xml 2005-07-23 17:47:28 UTC
(rev 16707)
@@ -107,7 +107,6 @@
<file>dc.c</file>
<file>dib.c</file>
<file>fillshap.c</file>
- <file>font.c</file>
<file>gdiobj.c</file>
<file>icm.c</file>
<file>line.c</file>
Added makefile which tell how to compile rosapps.
Added: trunk/rosapps/makefile
_____
Added: trunk/rosapps/makefile
--- trunk/rosapps/makefile 2005-07-23 17:40:48 UTC (rev 16705)
+++ trunk/rosapps/makefile 2005-07-23 17:45:41 UTC (rev 16706)
@@ -0,0 +1,3 @@
+all:
+ @echo To build rosapps it has to be copied it into the
reactos\modules folder. After
+ @echo this you can run "make depends" in the \reactos directory
to compile it.