mirror of
https://github.com/reactos/reactos.git
synced 2025-07-03 16:31:22 +00:00
Fix a bug.
svn path=/trunk/; revision=25760
This commit is contained in:
parent
011bca506e
commit
0675bc2424
1 changed files with 23 additions and 22 deletions
|
@ -158,14 +158,9 @@ static BOOL UserLoadKbdDll(WCHAR *wsKLID,
|
||||||
|
|
||||||
*phModule = EngLoadImage(FullLayoutPath.Buffer);
|
*phModule = EngLoadImage(FullLayoutPath.Buffer);
|
||||||
|
|
||||||
if(!*phModule)
|
if(*phModule)
|
||||||
{
|
{
|
||||||
DPRINT1( "Failed to load %wZ\n", &FullLayoutPath );
|
DPRINT("Loaded %wZ\n", &FullLayoutPath);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
DPRINT( "Loaded Keyboard Layout: %wZ\n", &FullLayoutPath );
|
|
||||||
}
|
|
||||||
|
|
||||||
RtlInitAnsiString( &kbdProcedureName, "KbdLayerDescriptor" );
|
RtlInitAnsiString( &kbdProcedureName, "KbdLayerDescriptor" );
|
||||||
LdrGetProcedureAddress((PVOID)*phModule,
|
LdrGetProcedureAddress((PVOID)*phModule,
|
||||||
|
@ -188,6 +183,12 @@ static BOOL UserLoadKbdDll(WCHAR *wsKLID,
|
||||||
EngUnloadImage(*phModule);
|
EngUnloadImage(*phModule);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DPRINT1("Failed to load dll %wZ\n", &FullLayoutPath);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue