don't free a UNICODE_STRING which isn't allocated

svn path=/trunk/; revision=34099
This commit is contained in:
Christoph von Wittich 2008-06-26 12:26:31 +00:00
parent 4bcfbf7b99
commit 5616673582

View file

@ -766,7 +766,6 @@ Return Value:
--*/
{
CHAR ntNameBuffer[64];
UNICODE_STRING ntUnicodeString;
NTSTATUS status;
BOOLEAN changerDevice;
SCSI_REQUEST_BLOCK srb;
@ -815,7 +814,6 @@ Return Value:
DebugPrint((1,"CreateCdRomDeviceObjects: Can not create device %s\n",
ntNameBuffer));
RtlFreeUnicodeString(&ntUnicodeString);
goto CreateCdRomDeviceObjectExit;
}