From f9762a47d53b2415985ca83c9b2c1e8c03c981e7 Mon Sep 17 00:00:00 2001 From: ReactOS Portable Systems Group Date: Sat, 2 Jan 2010 04:46:23 +0000 Subject: [PATCH] [NTOS]: Fix stdCall macro to work with functions of zero parameters. svn path=/trunk/; revision=44876 --- reactos/ntoskrnl/include/internal/i386/callconv.s | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/reactos/ntoskrnl/include/internal/i386/callconv.s b/reactos/ntoskrnl/include/internal/i386/callconv.s index ac0182491c4..eb1d1a85e47 100644 --- a/reactos/ntoskrnl/include/internal/i386/callconv.s +++ b/reactos/ntoskrnl/include/internal/i386/callconv.s @@ -23,10 +23,11 @@ cCount = 0 - .irp arg, \ArgList - cCount = cCount+1 - .endr - + .ifnb \ArgList + .irp arg, \ArgList + cCount = cCount+1 + .endr + .endif .endm //