diff --git a/nfq2/darkmagic.c b/nfq2/darkmagic.c index a08da4f..05dd675 100644 --- a/nfq2/darkmagic.c +++ b/nfq2/darkmagic.c @@ -20,6 +20,8 @@ #include "nfqws.h" #ifdef __CYGWIN__ +#include + #include #include #include @@ -669,15 +671,11 @@ static bool set_low_appdata_env() HRESULT hr = SHGetKnownFolderPath(&FOLDERID_LocalAppDataLow, 0, NULL, &pszPath); if (SUCCEEDED(hr)) { - size_t k,l = wcslen(pszPath); - // make it cygwin compatible - for (k=0 ; k