mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14:52:12 +01:00
Fix indentation in a .no-auto-format source file
This commit is contained in:
parent
9090365ca7
commit
5a9cee51b9
@ -219,7 +219,7 @@ static HANDLE open_device(const char *path, BOOL enumerate)
|
|||||||
{
|
{
|
||||||
HANDLE handle;
|
HANDLE handle;
|
||||||
DWORD desired_access = (enumerate)? 0: (GENERIC_WRITE | GENERIC_READ);
|
DWORD desired_access = (enumerate)? 0: (GENERIC_WRITE | GENERIC_READ);
|
||||||
DWORD share_mode = FILE_SHARE_READ|FILE_SHARE_WRITE;
|
DWORD share_mode = FILE_SHARE_READ | FILE_SHARE_WRITE;
|
||||||
|
|
||||||
handle = CreateFileA(path,
|
handle = CreateFileA(path,
|
||||||
desired_access,
|
desired_access,
|
||||||
@ -228,7 +228,7 @@ static HANDLE open_device(const char *path, BOOL enumerate)
|
|||||||
OPEN_EXISTING,
|
OPEN_EXISTING,
|
||||||
FILE_FLAG_OVERLAPPED,/*FILE_ATTRIBUTE_NORMAL,*/
|
FILE_FLAG_OVERLAPPED,/*FILE_ATTRIBUTE_NORMAL,*/
|
||||||
0);
|
0);
|
||||||
DWORD error = GetLastError();
|
DWORD error = GetLastError();
|
||||||
return handle;
|
return handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user