[winpr] add WINPR_C_ARRAY_INIT

since C23 allows c++ style initializing replace direct use with this
macro
This commit is contained in:
Armin Novak
2026-02-24 20:18:25 +01:00
parent a5609b929e
commit 48267edf2f
434 changed files with 2204 additions and 2195 deletions

View File

@@ -719,7 +719,7 @@ error_handle:
static DWORD WINAPI serial_thread_func(LPVOID arg)
{
IRP* irp = NULL;
wMessage message = { 0 };
wMessage message = WINPR_C_ARRAY_INIT;
SERIAL_DEVICE* serial = (SERIAL_DEVICE*)arg;
UINT error = CHANNEL_RC_OK;