mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 23:32:58 +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);
|
RtlInitUnicodeString(&FullLayoutPath,SYSTEMROOT_DIR);
|
||||||
|
|
||||||
if( !NT_SUCCESS(Status) ) {
|
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);
|
Status);
|
||||||
RtlFreeUnicodeString(&LayoutFile);
|
|
||||||
} else {
|
} else {
|
||||||
DPRINT("Read registry and got %wZ\n", &LayoutFile);
|
DPRINT("Read registry and got %wZ\n", &LayoutFile);
|
||||||
|
|
||||||
|
@ -566,9 +565,9 @@ void InitKbdLayout( PVOID *pkKeyboardLayout )
|
||||||
|
|
||||||
if( !kbModule )
|
if( !kbModule )
|
||||||
DPRINT1( "Load Keyboard Layout: No %wZ\n", &FullLayoutPath );
|
DPRINT1( "Load Keyboard Layout: No %wZ\n", &FullLayoutPath );
|
||||||
|
|
||||||
|
RtlFreeUnicodeString(&FullLayoutPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
RtlFreeUnicodeString(&FullLayoutPath);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !kbModule )
|
if( !kbModule )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue