Don't free unicode strings in case of error

svn path=/trunk/; revision=14944
This commit is contained in:
Hervé Poussineau 2005-05-02 11:03:54 +00:00
parent dabd9ab597
commit 252332e971

View file

@ -533,9 +533,8 @@ void InitKbdLayout( PVOID *pkKeyboardLayout )
RtlInitUnicodeString(&FullLayoutPath,SYSTEMROOT_DIR);
if( !NT_SUCCESS(Status) ) {
DPRINT1("Got default locale but not layout file. (%08x)\n",
DPRINT1("Got default locale but not layout file. (%08lx)\n",
Status);
RtlFreeUnicodeString(&LayoutFile);
} else {
DPRINT("Read registry and got %wZ\n", &LayoutFile);
@ -566,9 +565,9 @@ void InitKbdLayout( PVOID *pkKeyboardLayout )
if( !kbModule )
DPRINT1( "Load Keyboard Layout: No %wZ\n", &FullLayoutPath );
RtlFreeUnicodeString(&FullLayoutPath);
}
RtlFreeUnicodeString(&FullLayoutPath);
}
if( !kbModule )