mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 19:44:57 +00:00
Fix coding style.
This commit is contained in:
parent
065d772696
commit
56976ad6ea
1 changed files with 11 additions and 5 deletions
|
@ -217,11 +217,17 @@ void WiimoteScanner::FindWiimotes(std::vector<Wiimote*> & found_wiimotes, Wiimot
|
|||
wm->devicepath = detail_data->DevicePath;
|
||||
|
||||
TCHAR name[128] = {};
|
||||
HANDLE dev_handle = CreateFile(wm->devicepath.c_str(),
|
||||
GENERIC_READ, FILE_SHARE_READ,
|
||||
NULL, OPEN_EXISTING, FILE_FLAG_OVERLAPPED, NULL);
|
||||
HANDLE dev_handle = CreateFile(wm->devicepath.c_str(),
|
||||
GENERIC_READ,
|
||||
FILE_SHARE_READ,
|
||||
NULL,
|
||||
OPEN_EXISTING,
|
||||
FILE_FLAG_OVERLAPPED,
|
||||
NULL);
|
||||
|
||||
if (dev_handle != INVALID_HANDLE_VALUE && HidD_GetProductString(dev_handle, name, 128) && IsBalanceBoardName(TStrToUTF8(name)))
|
||||
if (dev_handle != INVALID_HANDLE_VALUE &&
|
||||
HidD_GetProductString(dev_handle, name, 128) &&
|
||||
IsBalanceBoardName(TStrToUTF8(name)))
|
||||
{
|
||||
found_board = wm;
|
||||
}
|
||||
|
@ -230,7 +236,7 @@ void WiimoteScanner::FindWiimotes(std::vector<Wiimote*> & found_wiimotes, Wiimot
|
|||
found_wiimotes.push_back(wm);
|
||||
}
|
||||
|
||||
if(dev_handle != INVALID_HANDLE_VALUE)
|
||||
if (dev_handle != INVALID_HANDLE_VALUE)
|
||||
{
|
||||
CloseHandle(dev_handle);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue