From 00844ee036b471f33fa3976e8bb4c56f8c3b16d6 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 23 Jun 2004 00:12:03 +0000 Subject: [PATCH] Fixed wrong Unicode string syntax in GetMonitorInfoW. --- windows/multimon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/windows/multimon.c b/windows/multimon.c index d1fe7b42d7a..56f0dd2d213 100644 --- a/windows/multimon.c +++ b/windows/multimon.c @@ -114,6 +114,7 @@ BOOL WINAPI GetMonitorInfoA(HMONITOR hMonitor, LPMONITORINFO lpMonitorInfo) */ BOOL WINAPI GetMonitorInfoW(HMONITOR hMonitor, LPMONITORINFO lpMonitorInfo) { + static const WCHAR displayW[] = {'D','I','S','P','L','A','Y',0}; RECT rcWork; if ((hMonitor == xPRIMARY_MONITOR) && @@ -128,7 +129,7 @@ BOOL WINAPI GetMonitorInfoW(HMONITOR hMonitor, LPMONITORINFO lpMonitorInfo) lpMonitorInfo->dwFlags = MONITORINFOF_PRIMARY; if (lpMonitorInfo->cbSize >= sizeof(MONITORINFOEXW)) - strcpyW(((MONITORINFOEXW*)lpMonitorInfo)->szDevice, (LPCWSTR)"D\0I\0S\0P\0L\0A\0Y\0\0"); + strcpyW(((MONITORINFOEXW*)lpMonitorInfo)->szDevice, displayW); return TRUE; }