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