diff --git a/reactos/ntoskrnl/Makefile b/reactos/ntoskrnl/Makefile index 57e55912044..00069e30169 100644 --- a/reactos/ntoskrnl/Makefile +++ b/reactos/ntoskrnl/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.20 2001/03/15 18:37:29 dwelch Exp $ +# $Id: Makefile,v 1.21 2001/03/15 18:49:17 dwelch Exp $ # # ReactOS Operating System # @@ -579,7 +579,7 @@ include $(D1_FILES) $(CC) $(CFLAGS) -M $< | $(EXE_PREFIX)depends$(EXE_POSTFIX) $(@D) > $@ .%.d: %.S - $(CC) $(CFLAGS) -M $< | $(EXE_PREFIX)depends$(EXE_POSTFIX) $(@D) + $(CC) $(CFLAGS) -M $< | $(EXE_PREFIX)depends$(EXE_POSTFIX) $(@D) > $@ include $(PATH_TO_TOP)/rules.mak diff --git a/reactos/ntoskrnl/depends.c b/reactos/ntoskrnl/depends.c index 99708db9706..8678665b057 100644 --- a/reactos/ntoskrnl/depends.c +++ b/reactos/ntoskrnl/depends.c @@ -20,13 +20,18 @@ int main(int argc, char* argv[]) } i = 0; - while ((ch = fgetc(stdin)) != ':') + while ((ch = fgetc(stdin)) != ':' && ch != EOF) { buf[i] = ch; i++; } buf[i] = 0; + if (i == 0) + { + return(0); + } + dot = strrchr(buf, '.'); if (dot != NULL) {