From acabbb7b8595ca5794fc0dfffc16c052fb4c0e72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sat, 16 Dec 2017 22:48:11 +0100 Subject: [PATCH] [VFDLIB] Fix preprocessor directive compilation error when being used inside a macro expansion on MSVC. --- modules/rosapps/lib/vfdlib/vfdctl.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/rosapps/lib/vfdlib/vfdctl.c b/modules/rosapps/lib/vfdlib/vfdctl.c index 54c3320e390..69f8cd5abd5 100644 --- a/modules/rosapps/lib/vfdlib/vfdctl.c +++ b/modules/rosapps/lib/vfdlib/vfdctl.c @@ -2928,13 +2928,14 @@ DWORD WINAPI VfdCheckDriverFile( fixedinfo->dwFileType != VFT_DRV || fixedinfo->dwFileSubtype != VFT2_DRV_SYSTEM) { - VFDTRACE(0, #ifndef __REACTOS__ + VFDTRACE(0, (FUNC ": Invalid file type flags\n")); #else + VFDTRACE(0, (FUNC ": Invalid file type flags. os: %x (%x), type: %x (%x), subtype: %x (%x)\n", - fixedinfo->dwFileOS, VOS_NT_WINDOWS32, fixedinfo->dwFileType, VFT_DRV, - fixedinfo->dwFileSubtype, VFT2_DRV_SYSTEM)); + fixedinfo->dwFileOS, VOS_NT_WINDOWS32, fixedinfo->dwFileType, VFT_DRV, + fixedinfo->dwFileSubtype, VFT2_DRV_SYSTEM)); #endif ret = ERROR_BAD_DRIVER;