Commit 1bcc7dc6 authored by rvargas's avatar rvargas Committed by Commit bot

Remove implicit HANDLE conversions from net.

BUG=416722
R=rtenneti@chromium.org

Review URL: https://codereview.chromium.org/594973002

Cr-Commit-Position: refs/heads/master@{#296534}
parent 290b8f66
...@@ -216,7 +216,8 @@ WifiPHYLayerProtocol GetWifiPHYLayerProtocol() { ...@@ -216,7 +216,8 @@ WifiPHYLayerProtocol GetWifiPHYLayerProtocol() {
return WIFI_PHY_LAYER_PROTOCOL_NONE; return WIFI_PHY_LAYER_PROTOCOL_NONE;
WLAN_INTERFACE_INFO_LIST* interface_list_ptr = NULL; WLAN_INTERFACE_INFO_LIST* interface_list_ptr = NULL;
result = wlanapi.enum_interfaces_func(client, NULL, &interface_list_ptr); result = wlanapi.enum_interfaces_func(client.Get(), NULL,
&interface_list_ptr);
if (result != ERROR_SUCCESS) if (result != ERROR_SUCCESS)
return WIFI_PHY_LAYER_PROTOCOL_NONE; return WIFI_PHY_LAYER_PROTOCOL_NONE;
scoped_ptr<WLAN_INTERFACE_INFO_LIST, internal::WlanApiDeleter> interface_list( scoped_ptr<WLAN_INTERFACE_INFO_LIST, internal::WlanApiDeleter> interface_list(
...@@ -239,8 +240,9 @@ WifiPHYLayerProtocol GetWifiPHYLayerProtocol() { ...@@ -239,8 +240,9 @@ WifiPHYLayerProtocol GetWifiPHYLayerProtocol() {
DWORD conn_info_size = 0; DWORD conn_info_size = 0;
WLAN_OPCODE_VALUE_TYPE op_code; WLAN_OPCODE_VALUE_TYPE op_code;
result = wlanapi.query_interface_func( result = wlanapi.query_interface_func(
client, &info->InterfaceGuid, wlan_intf_opcode_current_connection, NULL, client.Get(), &info->InterfaceGuid, wlan_intf_opcode_current_connection,
&conn_info_size, reinterpret_cast<VOID**>(&conn_info_ptr), &op_code); NULL, &conn_info_size, reinterpret_cast<VOID**>(&conn_info_ptr),
&op_code);
if (result != ERROR_SUCCESS) if (result != ERROR_SUCCESS)
return WIFI_PHY_LAYER_PROTOCOL_UNKNOWN; return WIFI_PHY_LAYER_PROTOCOL_UNKNOWN;
scoped_ptr<WLAN_CONNECTION_ATTRIBUTES, internal::WlanApiDeleter> conn_info( scoped_ptr<WLAN_CONNECTION_ATTRIBUTES, internal::WlanApiDeleter> conn_info(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment