W32kSetTextColor, W32GetDCState16 needed __stdcall; changed the subsystem field from windows to native

svn path=/trunk/; revision=748
This commit is contained in:
Emanuele Aliberti 1999-10-31 22:43:40 +00:00
parent 31c5b7839f
commit f0f8791763
2 changed files with 44 additions and 23 deletions

View file

@ -1,3 +1,4 @@
# $Id: makefile,v 1.13 1999/10/31 22:43:40 ea Exp $
#
# WIN32K.SYS build spec
#
@ -24,7 +25,6 @@ OBJECTS = $(ENG_OBJECTS) $(MAIN_OBJECTS) $(MISC_OBJECTS) $(OBJECTS_OBJECTS) \
all: $(TARGET).sys
$(TARGET).coff: $(TARGET).rc ../../include/reactos/resource.h
$(RC) $(TARGET).rc $(TARGET).coff
ifeq ($(DOSCLI),yes)
CLEAN_FILES = main\*.o misc\*.o stubs\*.o objects\*.o $(TARGET).coff $(TARGET).o \
@ -36,28 +36,48 @@ endif
$(TARGET).sys: $(OBJECTS) $(TARGET).def
$(LD) -r $(OBJECTS) -o $(TARGET).o
$(DLLTOOL) --dllname $(TARGET).sys --def $(TARGET).def \
--output-lib $(TARGET).a
$(CC) --subsystem=windows -mdll --dll -e _DllMain@12 -o junk.tmp \
-Wl,--image-base,0x0 \
-Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \
-Wl,--defsym,_end=end \
-Wl,--defsym,_edata=__data_end__ \
-Wl,--defsym,_etext=etext -Wl,--base-file,base.tmp $(TARGET).o \
-specs=../../specs ../../ntoskrnl/ntoskrnl.a
$(DLLTOOL) \
--dllname $(TARGET).sys \
--def $(TARGET).def \
--output-lib $(TARGET).a
$(CC) \
--subsystem=native \
-mdll \
--dll \
-e _DllMain@12 \
-o junk.tmp \
-Wl,--image-base,0x0 \
-Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \
-Wl,--defsym,_end=end \
-Wl,--defsym,_edata=__data_end__ \
-Wl,--defsym,_etext=etext \
-Wl,--base-file,base.tmp $(TARGET).o \
-specs=../../specs \
../../ntoskrnl/ntoskrnl.a
- $(RM) junk.tmp
$(DLLTOOL) --dllname $(TARGET).sys --base-file base.tmp \
--output-exp temp.exp --def $(TARGET).def
$(DLLTOOL) \
--dllname $(TARGET).sys \
--base-file base.tmp \
--output-exp temp.exp \
--def $(TARGET).def
- $(RM) base.tmp
$(CC) --subsystem=windows -mdll --dll -e _DllMain@12 \
-o $(TARGET).sys $(TARGET).o ../../ntoskrnl/ntoskrnl.a \
-Wl,--image-base,0x0 \
-Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \
-Wl,--defsym,_end=end \
-Wl,--defsym,_edata=__data_end__ \
-Wl,--defsym,_etext=etext -Wl,temp.exp -specs=../../specs
$(CC) \
--subsystem=native \
-mdll \
--dll \
-e _DllMain@12 \
-o $(TARGET).sys \
$(TARGET).o \
../../ntoskrnl/ntoskrnl.a \
-Wl,--image-base,0x0 \
-Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000 \
-Wl,--defsym,_end=end \
-Wl,--defsym,_edata=__data_end__ \
-Wl,--defsym,_etext=etext \
-Wl,temp.exp \
-specs=../../specs
- $(RM) temp.exp
$(NM) --numeric-sort $(TARGET).sys > $(TARGET).sym

View file

@ -1,4 +1,5 @@
/*
/* $Id: dc.c,v 1.8 1999/10/31 22:43:40 ea Exp $
*
* DC.C - Device context functions
*
*/
@ -336,7 +337,7 @@ BOOL STDCALL W32kGetDCOrgEx(HDC hDC,
return TRUE;
}
HDC W32kGetDCState16(HDC hDC)
HDC STDCALL W32kGetDCState16(HDC hDC)
{
PDC newdc, dc;