mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[WLANCONF]
Fix a bug, I introduced. svn path=/trunk/; revision=58340
This commit is contained in:
parent
9ca7108e72
commit
0d3e08073b
1 changed files with 4 additions and 2 deletions
|
@ -562,6 +562,7 @@ WlanPrintCurrentStatus(HANDLE hAdapter)
|
|||
BOOL
|
||||
WlanConnect(HANDLE hAdapter)
|
||||
{
|
||||
CHAR SsidBuffer[NDIS_802_11_LENGTH_SSID + 1];
|
||||
BOOL bSuccess;
|
||||
DWORD dwBytesReturned, SetOidSize;
|
||||
PNDISUIO_SET_OID SetOid;
|
||||
|
@ -706,8 +707,9 @@ WlanConnect(HANDLE hAdapter)
|
|||
SetOid->Oid = OID_802_11_SSID;
|
||||
Ssid = (PNDIS_802_11_SSID)SetOid->Data;
|
||||
|
||||
RtlCopyMemory(Ssid->Ssid, sSsid, wcslen(sSsid));
|
||||
Ssid->SsidLength = wcslen(sSsid);
|
||||
snprintf(SsidBuffer, sizeof(SsidBuffer), "%S", sSsid);
|
||||
RtlCopyMemory(Ssid->Ssid, SsidBuffer, strlen(SsidBuffer));
|
||||
Ssid->SsidLength = strlen(SsidBuffer);
|
||||
|
||||
bSuccess = DeviceIoControl(hAdapter,
|
||||
IOCTL_NDISUIO_SET_OID_VALUE,
|
||||
|
|
Loading…
Reference in a new issue