Don't free the string, as it is not ours
authorHervé Poussineau <hpoussin@reactos.org>
Thu, 1 Jun 2006 19:55:28 +0000 (19:55 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Thu, 1 Jun 2006 19:55:28 +0000 (19:55 +0000)
svn path=/trunk/; revision=22158

reactos/dll/win32/user32/misc/display.c

index f1670af..30bbdfc 100644 (file)
@@ -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;
 }