8
0
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:
paul_reeves 2007-07-25 13:04:19 +00:00
parent d3eb16e563
commit 92b983962a

View File

@ -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);