mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 01:15:42 +00:00
Add braces to if.
svn path=/trunk/; revision=25759
This commit is contained in:
parent
c1145464aa
commit
011bca506e
1 changed files with 13 additions and 4 deletions
|
@ -158,8 +158,14 @@ static BOOL UserLoadKbdDll(WCHAR *wsKLID,
|
||||||
|
|
||||||
*phModule = EngLoadImage(FullLayoutPath.Buffer);
|
*phModule = EngLoadImage(FullLayoutPath.Buffer);
|
||||||
|
|
||||||
if(!*phModule) DPRINT1( "Failed to load %wZ\n", &FullLayoutPath );
|
if(!*phModule)
|
||||||
else DPRINT( "Loaded Keyboard Layout: %wZ\n", &FullLayoutPath );
|
{
|
||||||
|
DPRINT1( "Failed to load %wZ\n", &FullLayoutPath );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DPRINT( "Loaded Keyboard Layout: %wZ\n", &FullLayoutPath );
|
||||||
|
}
|
||||||
|
|
||||||
RtlInitAnsiString( &kbdProcedureName, "KbdLayerDescriptor" );
|
RtlInitAnsiString( &kbdProcedureName, "KbdLayerDescriptor" );
|
||||||
LdrGetProcedureAddress((PVOID)*phModule,
|
LdrGetProcedureAddress((PVOID)*phModule,
|
||||||
|
@ -204,7 +210,7 @@ static PKBL UserLoadDllAndCreateKbl(LCID LocaleId)
|
||||||
|
|
||||||
if(!UserLoadKbdDll(NewKbl->Name, &NewKbl->hModule, &NewKbl->KBTables))
|
if(!UserLoadKbdDll(NewKbl->Name, &NewKbl->hModule, &NewKbl->KBTables))
|
||||||
{
|
{
|
||||||
DPRINT1("%s: failed to load %x dll!\n", LocaleId);
|
DPRINT1("%s: failed to load %x dll!\n", __FUNCTION__, LocaleId);
|
||||||
ExFreePool(NewKbl);
|
ExFreePool(NewKbl);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -240,7 +246,10 @@ BOOL UserInitDefaultKeyboardLayout()
|
||||||
{
|
{
|
||||||
DPRINT1("Could not get default locale (%08lx).\n", Status);
|
DPRINT1("Could not get default locale (%08lx).\n", Status);
|
||||||
}
|
}
|
||||||
else DPRINT("DefaultLocale = %08lx\n", LocaleId);
|
else
|
||||||
|
{
|
||||||
|
DPRINT("DefaultLocale = %08lx\n", LocaleId);
|
||||||
|
}
|
||||||
|
|
||||||
if(!NT_SUCCESS(Status) || !(DefaultKL = UserLoadDllAndCreateKbl(LocaleId)))
|
if(!NT_SUCCESS(Status) || !(DefaultKL = UserLoadDllAndCreateKbl(LocaleId)))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue