mirror of
https://github.com/reactos/reactos.git
synced 2025-01-06 06:20:13 +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);
|
||||
|
||||
if(!*phModule) DPRINT1( "Failed to load %wZ\n", &FullLayoutPath );
|
||||
else DPRINT( "Loaded Keyboard Layout: %wZ\n", &FullLayoutPath );
|
||||
if(!*phModule)
|
||||
{
|
||||
DPRINT1( "Failed to load %wZ\n", &FullLayoutPath );
|
||||
}
|
||||
else
|
||||
{
|
||||
DPRINT( "Loaded Keyboard Layout: %wZ\n", &FullLayoutPath );
|
||||
}
|
||||
|
||||
RtlInitAnsiString( &kbdProcedureName, "KbdLayerDescriptor" );
|
||||
LdrGetProcedureAddress((PVOID)*phModule,
|
||||
|
@ -204,7 +210,7 @@ static PKBL UserLoadDllAndCreateKbl(LCID LocaleId)
|
|||
|
||||
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);
|
||||
return NULL;
|
||||
}
|
||||
|
@ -240,7 +246,10 @@ BOOL UserInitDefaultKeyboardLayout()
|
|||
{
|
||||
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)))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue