Corrected based on changes to resource data handle.

pull/60/head
David Hall 2019-06-25 17:20:30 -06:00
parent 0920c029ec
commit a13ad1f3c8
1 changed files with 1 additions and 1 deletions

View File

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