3,248
社区成员




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指针操作吗?