Don't free the string, as it is not ours

svn path=/trunk/; revision=22158
This commit is contained in:
Hervé Poussineau 2006-06-01 19:55:28 +00:00
parent e5a6d9a2cc
commit fdd161b84d

View 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;
}