Commit 8198b1a1 authored by michel's avatar michel

4.1 k_order_perturbation: correcting bug in releasing _dynamic.DLL (Windows version)

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3200 ac1d8469-bf42-47a9-8791-bf33cf982152
parent 50311226
......@@ -39,11 +39,10 @@ DynamicModelDLL::DynamicModelDLL(const string &modName, const int y_length, cons
try
{
#if defined(__CYGWIN32__) || defined(_WIN32)
HINSTANCE dynamicHinstance;
dynamicHinstance = ::LoadLibrary(fName.c_str());
dynamicHinstance = LoadLibrary(fName.c_str());
if (dynamicHinstance == NULL)
throw 1;
Dynamic = (DynamicFn) ::GetProcAddress(dynamicHinstance, "Dynamic");
Dynamic = (DynamicFn)GetProcAddress(dynamicHinstance, "Dynamic");
if (Dynamic == NULL)
throw 2;
#else // Linux or Mac
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment