From 0bc35d39978a7c2906b4f2e59a3f294de1f4ad1a Mon Sep 17 00:00:00 2001 From: xspeed1989 Date: Thu, 25 Feb 2021 21:25:27 +0800 Subject: [PATCH] fix get wrong value of -d -d32 options;fix WSCInstallProviderAndChains64_32 with wrong x86 lsp dll path --- Samples/Win7Samples/netds/winsock/lsp/install/instlsp.cpp | 2 +- Samples/Win7Samples/netds/winsock/lsp/install/lspadd.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Samples/Win7Samples/netds/winsock/lsp/install/instlsp.cpp b/Samples/Win7Samples/netds/winsock/lsp/install/instlsp.cpp index a74c2a6d..feaa8944 100644 --- a/Samples/Win7Samples/netds/winsock/lsp/install/instlsp.cpp +++ b/Samples/Win7Samples/netds/winsock/lsp/install/instlsp.cpp @@ -237,7 +237,7 @@ int _cdecl main(int argc, char *argv[]) case 'd': // Full path and filename to LSP if ( i+1 >= argc ) goto cleanup; - if (_strnicmp(argv[i], "-d32", 4)) + if (!_strnicmp(argv[i], "-d32", 4)) lpszLspPathAndFile32 = argv[ ++i ]; else lpszLspPathAndFile = argv[ ++i ]; diff --git a/Samples/Win7Samples/netds/winsock/lsp/install/lspadd.cpp b/Samples/Win7Samples/netds/winsock/lsp/install/lspadd.cpp index ad33aa14..416c9a4a 100644 --- a/Samples/Win7Samples/netds/winsock/lsp/install/lspadd.cpp +++ b/Samples/Win7Samples/netds/winsock/lsp/install/lspadd.cpp @@ -1422,7 +1422,7 @@ InstallProviderVista( providerGuid, lpszLspPathAndFile, #ifdef _WIN64 - lpszLspPathAndFile, + lpszLspPathAndFile32, #endif lpszLspName, ( IfsProvider ? XP1_IFS_HANDLES : 0 ),