mirror of https://github.com/dahall/Vanara.git
Corrected based on changes to resource data handle.
parent
0920c029ec
commit
a13ad1f3c8
|
@ -85,7 +85,7 @@ namespace Vanara.Resources
|
|||
throw new Win32Exception();
|
||||
|
||||
var hResData = LoadResource(hLib, hResInfo);
|
||||
if (hResData.IsInvalid)
|
||||
if (hResData.IsNull)
|
||||
throw new Win32Exception();
|
||||
|
||||
var hGlobal = LockResource(hResData);
|
||||
|
|
Loading…
Reference in New Issue