From 06108687e8949520b29e0016fb9605facfd6f073 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 29 Sep 2010 02:35:54 +0200 Subject: midltests: make it possible to allow downgrades to NDR32 metze --- testprogs/win32/midltests/midltests_tcp.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'testprogs') diff --git a/testprogs/win32/midltests/midltests_tcp.c b/testprogs/win32/midltests/midltests_tcp.c index ca01c62c95..41a698c3a9 100644 --- a/testprogs/win32/midltests/midltests_tcp.c +++ b/testprogs/win32/midltests/midltests_tcp.c @@ -197,13 +197,17 @@ static void change_packet(const char *ctx, BOOL ndr64, buf[24+0x48] = 0xFF; printf("%s: disable NDR64\n\n", ctx); } else if (buf[24] < 3 && ndr64) { - buf[24] = 0x00; + printf("\n%s: got NDR32 downgrade\n\n", ctx); +#ifndef DONOT_FORCE_NDR64 printf("\n\tERROR!!!\n\n"); - printf("%s: disable NDR32\n", ctx); - printf("\n"); + buf[24] = 0x00; printf("You may need to run 'vcvarsall.bat amd64' before 'nmake tcp'\n"); - } else { +#endif + printf("\n"); + } else if (buf[24] == 3 && ndr64) { printf("%s: got NDR64\n\n", ctx); + } else { + printf("%s: got NDR32\n\n", ctx); } //printf("%s: bind with %u pres\n", ctx, buf[24]); fflush(stdout); -- cgit