mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Don't free unicode strings in case of error
svn path=/trunk/; revision=14944
This commit is contained in:
parent
dabd9ab597
commit
252332e971
1 changed files with 3 additions and 4 deletions
|
@ -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,10 +565,10 @@ void InitKbdLayout( PVOID *pkKeyboardLayout )
|
|||
|
||||
if( !kbModule )
|
||||
DPRINT1( "Load Keyboard Layout: No %wZ\n", &FullLayoutPath );
|
||||
}
|
||||
|
||||
RtlFreeUnicodeString(&FullLayoutPath);
|
||||
}
|
||||
}
|
||||
|
||||
if( !kbModule )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue