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:
parent
84f96d7d76
commit
8c1dc222aa
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user