8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 00:03: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;
}
char filename[MAX_PATH];
GetModuleFileName(hDllInst, filename, sizeof(filename));
char *filename = root.getBuffer(MAX_PATH);
GetModuleFileName(hDllInst, filename, MAX_PATH);
PathName file;
PathUtils::splitLastComponent(root, file, filename);
root.recalculate_length();
return root.hasData();
}