From 845127a27b082a87ccfce122ac6037457a8ae934 Mon Sep 17 00:00:00 2001 From: Brad Lassey Date: Wed, 5 Aug 2009 14:40:42 -0400 Subject: [PATCH] fixing wince build bustage from bug 505032 r=biesi --- netwerk/wifi/src/nsWifiScannerWin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netwerk/wifi/src/nsWifiScannerWin.cpp b/netwerk/wifi/src/nsWifiScannerWin.cpp index f333f4db4ab..465cde081a9 100644 --- a/netwerk/wifi/src/nsWifiScannerWin.cpp +++ b/netwerk/wifi/src/nsWifiScannerWin.cpp @@ -97,14 +97,14 @@ PRBool ResizeBuffer(int requested_size, BYTE **buffer) #ifdef WINCE int PerformQuery(HANDLE &ndis_handle, - TCHAR *device_name, + const TCHAR *device_name, BYTE *buffer, DWORD buffer_size, BYTE *&data, DWORD *bytes_out) { // Form the query parameters. NDISUIO_QUERY_OID *query = (NDISUIO_QUERY_OID*)(buffer); - query->ptcDeviceName = device_name; + query->ptcDeviceName = const_cast(device_name); query->Oid = OID_802_11_BSSID_LIST; if (!DeviceIoControl(ndis_handle,