summaryrefslogtreecommitdiff
path: root/src/modules/database/database.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-07-19 17:00:04 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-07-19 17:00:04 +0000
commit2bded955e286f0fcb860e0ed3a1ff3574f7db52c (patch)
tree28270f3718bf48256dc21ab952d40d6fc3c62dd7 /src/modules/database/database.cpp
parent5b24aa5f6f969c07be09468eceb6a184f3f9fc8a (diff)
profile manager: support for the obsolete profiles
git-svn-id: http://svn.miranda-ng.org/main/trunk@9865 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/database/database.cpp')
-rw-r--r--src/modules/database/database.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/database/database.cpp b/src/modules/database/database.cpp
index 9ede9ce6e9..aa0c86045c 100644
--- a/src/modules/database/database.cpp
+++ b/src/modules/database/database.cpp
@@ -33,14 +33,14 @@ void EnsureCheckerLoaded(bool);
void LoadDatabaseServices();
-bool fileExist(TCHAR* fname)
+bool fileExist(const TCHAR *fname)
{
if (*fname == 0)
return false;
- FILE* fp = _tfopen(fname, _T("r+"));
+ FILE *fp = _tfopen(fname, _T("r+"));
bool res = fp != NULL;
- if (res) fclose(fp);
+ if (fp) fclose(fp);
return res;
}