From 9c12c3ee4e478ea0519c1c4143c3b0c9847e9954 Mon Sep 17 00:00:00 2001 From: fufesou Date: Mon, 20 Nov 2023 16:48:05 +0800 Subject: [PATCH] remove useless \n Signed-off-by: fufesou --- libs/virtual_display/dylib/src/win10/IddController.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/virtual_display/dylib/src/win10/IddController.c b/libs/virtual_display/dylib/src/win10/IddController.c index eb3a6238a..0c6d06799 100644 --- a/libs/virtual_display/dylib/src/win10/IddController.c +++ b/libs/virtual_display/dylib/src/win10/IddController.c @@ -294,7 +294,7 @@ BOOL DeviceCreateWithLifetime(SW_DEVICE_LIFETIME *lifetime, PHSWDEVICE hSwDevice if (FAILED(hr)) { LPSTR errorString = formatErrorString((DWORD)hr); - SetLastMsg("Failed DeviceCreate SwDeviceCreate, hresult 0x%lx, %s\n", hr, errorString == NULL ? "(NULL)\n" : errorString); + SetLastMsg("Failed DeviceCreate SwDeviceCreate, hresult 0x%lx, %s", hr, errorString == NULL ? "(NULL)\n" : errorString); if (errorString != NULL) { LocalFree(errorString); @@ -438,7 +438,7 @@ BOOL MonitorPlugIn(UINT index, UINT edid, INT retries) if (!SUCCEEDED(hr)) { LPSTR errorString = formatErrorString((DWORD)hr); - SetLastMsg("Failed MonitorPlugIn CoCreateGuid, hresult 0x%lx, %s\n", hr, errorString == NULL ? "(NULL)\n" : errorString); + SetLastMsg("Failed MonitorPlugIn CoCreateGuid, hresult 0x%lx, %s", hr, errorString == NULL ? "(NULL)\n" : errorString); if (errorString != NULL) { LocalFree(errorString); @@ -726,7 +726,7 @@ GetDevicePath( if (FAILED(hr)) { LPSTR errorString = formatErrorString((DWORD)hr); - SetLastMsg("Failed GetDevicePath StringCchCopy, hresult 0x%lx, %s\n", hr, errorString == NULL ? "(NULL)\n" : errorString); + SetLastMsg("Failed GetDevicePath StringCchCopy, hresult 0x%lx, %s", hr, errorString == NULL ? "(NULL)\n" : errorString); if (errorString != NULL) { LocalFree(errorString); @@ -894,7 +894,7 @@ BOOLEAN GetDevicePath2( if (FAILED(hr)) { LPSTR errorString = formatErrorString((DWORD)hr); - SetLastMsg("Failed GetDevicePath2 StringCchCopy, hresult 0x%lx, %s\n", hr, errorString == NULL ? "(NULL)\n" : errorString); + SetLastMsg("Failed GetDevicePath2 StringCchCopy, hresult 0x%lx, %s", hr, errorString == NULL ? "(NULL)\n" : errorString); if (errorString != NULL) { LocalFree(errorString);