3,245
社区成员
发帖
与我相关
我的任务
分享
HINSTANCE hmod = LoadLibrary(L"function.dll");
if (hmod == NULL)
{
FreeLibrary(hmod);
}
else
{
_GetSerNum = (GetSerNum)GetProcAddress(hmod, "GetSerNum");
}
if (hmod == NULL)
{
FreeLibrary(hmod);
}
hmod为NULL了,你还要freeLibrary,那不是对 NULL指针操作吗?