We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent baf84e2 commit e5de4b0Copy full SHA for e5de4b0
Lib/Edif.General.cpp
@@ -15,9 +15,9 @@ LPCTSTR * WINAPI DLLExport GetDependencies()
15
16
if (Edif::ExternalJSON)
17
{
18
- TCHAR JSONFilename [MAX_PATH];
+ TCHAR * JSONFilename = (TCHAR *)malloc(MAX_PATH * sizeof(TCHAR));
19
20
- GetModuleFileName (hInstLib, JSONFilename, sizeof (JSONFilename)/sizeof(TCHAR));
+ GetModuleFileName (hInstLib, JSONFilename, MAX_PATH);
21
22
TCHAR * Iterator = JSONFilename + _tcslen(JSONFilename) - 1;
23
@@ -40,7 +40,7 @@ LPCTSTR * WINAPI DLLExport GetDependencies()
40
41
TCHAR* tstr = Edif::ConvertString(DependenciesJSON[i]);
42
Dependencies[Offset + i] = tstr;
43
- Edif::FreeString(tstr);
+ //Edif::FreeString(tstr);
44
}
45
46
Dependencies[Offset + i] = 0;
0 commit comments