Skip to content

Commit

Permalink
[WLANWIZ] Fix improper assigning of adapter's GUID to CWlanWiz::m_sGUID
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaly Orekhov committed Jul 29, 2024
1 parent 5b55c36 commit 123cf1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dll/shellext/wlanwiz/wlanwiz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ BOOL CWlanWizard::FindWlanDevice(ATL::CString sGUID)
{
if (IsEqualGUID(gWlanDeviceID, this->lstWlanInterfaces[i].InterfaceInfo->InterfaceGuid))
{
this->m_sGUID = sGUID.GetBuffer();
StringFromIID(gWlanDeviceID, &this->m_sGUID);
return TRUE;
}
}
Expand Down
6 changes: 3 additions & 3 deletions dll/shellext/wlanwiz/wlanwiz_advsettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,18 @@ LRESULT CWlanWizard::OnAdvancedSettings(WORD wNotifyCode, WORD wID, HWND hWndCtl
while (pEnum->Next(1, &lpConnItemPIDL, NULL) == S_OK)
{
PNETCONIDSTRUCT nfid = reinterpret_cast<PNETCONIDSTRUCT>(lpConnItemPIDL);
if (IsEqualGUID(gWlanAdapter, nfid->guidId))
{
if (!IsEqualGUID(gWlanAdapter, nfid->guidId))
ILFree(lpConnItemPIDL);
else
break;
}
}

CComPtr<IContextMenu> pcm;
if (SUCCEEDED(pShfConn->GetUIObjectOf(NULL, 1, const_cast<LPCITEMIDLIST*>(&lpConnItemPIDL), IID_IContextMenu, NULL, reinterpret_cast<PVOID*>(&pcm.p))))
{
CMINVOKECOMMANDINFO ici = { sizeof(ici) };
ici.hwnd = NULL;
ici.cbSize = sizeof(ici);
ici.nShow = SW_NORMAL;
ici.lpVerb = "properties";
pcm->InvokeCommand(&ici);
Expand Down

0 comments on commit 123cf1b

Please sign in to comment.