mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 19:52:11 +00:00
Fix two smaller bugs in DxDdStartupDxGraphics
------------------------------------------------ fix : use full path to dxg.sys when we trying load it fix : only try unload dxg.sys if it really been load and got a fail status code. svn path=/trunk/; revision=30963
This commit is contained in:
parent
7ab27912da
commit
42fa951ba7
1 changed files with 10 additions and 5 deletions
|
@ -50,10 +50,12 @@ DxDdStartupDxGraphics( ULONG ulc1,
|
|||
// DxApiGetVersion()
|
||||
|
||||
/* Loading the kernel interface of directx for win32k */
|
||||
ghDxGraphics = EngLoadImage(L"drivers\\dxg.sys");
|
||||
if (!ghDxGraphics)
|
||||
|
||||
ghDxGraphics = EngLoadImage(L"\\SystemRoot\\System32\\drivers\\dxg.sys");
|
||||
|
||||
if (ghDxGraphics == NULL)
|
||||
{
|
||||
DPRINT1("Warning: dxg.sys not found\n");
|
||||
DPRINT1("Warning: dxg.sys not found\n");
|
||||
Status = STATUS_DLL_NOT_FOUND;
|
||||
}
|
||||
else
|
||||
|
@ -83,8 +85,11 @@ DxDdStartupDxGraphics( ULONG ulc1,
|
|||
{
|
||||
gpfnStartupDxGraphics = NULL;
|
||||
gpfnCleanupDxGraphics = NULL;
|
||||
EngUnloadImage( ghDxGraphics);
|
||||
ghDxGraphics = NULL;
|
||||
if (ghDxGraphics != NULL)
|
||||
{
|
||||
EngUnloadImage( ghDxGraphics);
|
||||
ghDxGraphics = NULL;
|
||||
}
|
||||
DPRINT1("Warning: DirectX graphics interface can not be initialized\n");
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue