From: Hervé Poussineau Date: Thu, 1 Jun 2006 19:55:28 +0000 (+0000) Subject: Don't free the string, as it is not ours X-Git-Tag: ReactOS-0.3.0~41^2~11 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=fdd161b84dc08352258578018f5ffb8d666eff53 Don't free the string, as it is not ours svn path=/trunk/; revision=22158 --- diff --git a/reactos/dll/win32/user32/misc/display.c b/reactos/dll/win32/user32/misc/display.c index f1670af8c3f..30bbdfcd937 100644 --- a/reactos/dll/win32/user32/misc/display.c +++ b/reactos/dll/win32/user32/misc/display.c @@ -115,8 +115,6 @@ EnumDisplayDevicesW( lpDisplayDevice, dwFlags ); - //RtlFreeUnicodeString ( &Device ); - return rc; } @@ -505,9 +503,6 @@ ChangeDisplaySettingsExW( rc = NtUserChangeDisplaySettings ( pDeviceName, lpDevMode, hwnd, dwflags, lParam ); - if (lpszDeviceName != NULL) - RtlFreeUnicodeString ( pDeviceName ); - return rc; }