Add braces to if.

svn path=/trunk/; revision=25759
This commit is contained in:
Saveliy Tretiakov 2007-02-10 07:28:25 +00:00
parent c1145464aa
commit 011bca506e

View file

@ -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)))
{ {