[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:
akallabeth
2024-11-25 15:10:30 +01:00
parent 40cbf65dff
commit 83f2f21ad3
84 changed files with 341 additions and 277 deletions

View File

@@ -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);