open the module image file with read access rights instead of full access rights
Modified: trunk/reactos/ntoskrnl/ldr/loader.c

Modified: trunk/reactos/ntoskrnl/ldr/loader.c
--- trunk/reactos/ntoskrnl/ldr/loader.c	2005-05-06 00:09:08 UTC (rev 15029)
+++ trunk/reactos/ntoskrnl/ldr/loader.c	2005-05-06 00:11:14 UTC (rev 15030)
@@ -311,7 +311,7 @@
         NULL);
     CHECKPOINT;
     Status = ZwOpenFile(&FileHandle,
-        FILE_ALL_ACCESS,
+        GENERIC_READ,
         &ObjectAttributes,
         &IoStatusBlock,
         0,