Skip to content

Commit

Permalink
Improved the error message of invalid adapter name in WlanHelper.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsluoyz committed Nov 8, 2016
1 parent 8926337 commit d1c1801
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions packetWin7/WlanHelper/WlanHelper/Tool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,13 @@ BOOL makeOIDRequest(tstring strAdapterGUID, ULONG iOid, BOOL bSet, PVOID pData,
goto makeOIDRequest_Exit3;
}

if (strAdapterGUID == _T(""))
{
_tprintf(_T("Error: makeOIDRequest::strAdapterGUID error, the adapter name is incorrect.\n"));
Status = FALSE;
goto makeOIDRequest_Exit3;
}

char strAdapterName[256];
sprintf_s(strAdapterName, 256, NPF_DRIVER_FORMAT_STR, tstring2string(strAdapterGUID).c_str());

Expand Down
2 changes: 1 addition & 1 deletion version.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#define /*
!define /**/ WINPCAP_BUILD 921
#define /*
!define /**/ WINPCAP_VER_STRING "0.10 r17"
!define /**/ WINPCAP_VER_STRING "0.10 r18"

#define WINPCAP_PACKET9x_STRING_VERSION WINPCAP_VER_STRING
#define WINPCAP_WPCAP_STRING_VERSION WINPCAP_VER_STRING
Expand Down

0 comments on commit d1c1801

Please sign in to comment.