Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix get wrong value of -d -d32 options;fix WSCInstallProviderAndChain… #177

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Samples/Win7Samples/netds/winsock/lsp/install/instlsp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_strnicmp(argv[i], "-d32", 4) == 0 means argv[i] equal "-d32"

lpszLspPathAndFile32 = argv[ ++i ];
else
lpszLspPathAndFile = argv[ ++i ];
Expand Down
2 changes: 1 addition & 1 deletion Samples/Win7Samples/netds/winsock/lsp/install/lspadd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1422,7 +1422,7 @@ InstallProviderVista(
providerGuid,
lpszLspPathAndFile,
#ifdef _WIN64
lpszLspPathAndFile,
lpszLspPathAndFile32,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the second param is 64 bit dll path,
the third param is 32 bit dll path.

#endif
lpszLspName,
( IfsProvider ? XP1_IFS_HANDLES : 0 ),
Expand Down