mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 01:25:56 +00:00
LoadResource crashed with NULL hModule
svn path=/trunk/; revision=4383
This commit is contained in:
parent
5b0769c317
commit
ed69e0431b
1 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: res.c,v 1.12 2003/01/15 21:24:35 chorns Exp $
|
/* $Id: res.c,v 1.13 2003/03/21 00:20:41 gdalsnes Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT : ReactOS user mode libraries
|
* PROJECT : ReactOS user mode libraries
|
||||||
|
@ -174,6 +174,11 @@ LoadResource (
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
PVOID Data;
|
PVOID Data;
|
||||||
|
|
||||||
|
if (hModule == NULL)
|
||||||
|
{
|
||||||
|
hModule = GetModuleHandle(NULL);
|
||||||
|
}
|
||||||
|
|
||||||
Status = LdrAccessResource (hModule, hResInfo, &Data, NULL);
|
Status = LdrAccessResource (hModule, hResInfo, &Data, NULL);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue