mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[warnigns] fix lots of bugprone warnings
* update-settings-tests: properly cast types in getter/setter * wtypes: fix PHANDLE definition * wStream: fix INT64 write function warnings * Simplify HANDLE copy in channels, just assign after proper cast
This commit is contained in:
@@ -50,7 +50,7 @@ typedef struct
|
||||
DEVICE device;
|
||||
BOOL permissive;
|
||||
SERIAL_DRIVER_ID ServerSerialDriverId;
|
||||
HANDLE* hComm;
|
||||
HANDLE hComm;
|
||||
|
||||
wLog* log;
|
||||
HANDLE MainThread;
|
||||
@@ -790,7 +790,7 @@ static UINT serial_free(DEVICE* device)
|
||||
}
|
||||
|
||||
if (serial->hComm)
|
||||
(void)CloseHandle(*serial->hComm);
|
||||
(void)CloseHandle(serial->hComm);
|
||||
|
||||
/* Clean up resources */
|
||||
Stream_Free(serial->device.data, TRUE);
|
||||
|
||||
Reference in New Issue
Block a user