8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 07:23:03 +01:00

Make it work correctly

This commit is contained in:
hvlad 2009-02-08 19:28:13 +00:00
parent 84f96d7d76
commit 8c1dc222aa

View File

@ -74,11 +74,10 @@ bool getBinFromHInstance(PathName& root)
return false; return false;
} }
char filename[MAX_PATH]; char *filename = root.getBuffer(MAX_PATH);
GetModuleFileName(hDllInst, filename, sizeof(filename)); GetModuleFileName(hDllInst, filename, MAX_PATH);
PathName file; root.recalculate_length();
PathUtils::splitLastComponent(root, file, filename);
return root.hasData(); return root.hasData();
} }