mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 00:03:03 +01:00
Use constant instead of hard-coded string
This commit is contained in:
parent
d3eb16e563
commit
92b983962a
@ -80,7 +80,7 @@ LONG CFBPanel::OnDblclk(HWND hwndCPl, UINT uAppNum, LONG lData)
|
||||
{
|
||||
char rootpath[MAX_PATH - 2];
|
||||
DWORD buffer_size = sizeof(rootpath);
|
||||
if (RegQueryValueEx(hkey, "DefaultInstance", NULL, NULL, LPBYTE(rootpath), &buffer_size)
|
||||
if (RegQueryValueEx(hkey, FB_DEFAULT_INSTANCE, NULL, NULL, LPBYTE(rootpath), &buffer_size)
|
||||
== ERROR_SUCCESS)
|
||||
{
|
||||
PathAddBackslash(rootpath);
|
||||
|
Loading…
Reference in New Issue
Block a user