diff options
author | George Hazan <george.hazan@gmail.com> | 2014-07-19 17:00:04 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-07-19 17:00:04 +0000 |
commit | 2bded955e286f0fcb860e0ed3a1ff3574f7db52c (patch) | |
tree | 28270f3718bf48256dc21ab952d40d6fc3c62dd7 /src/modules/database/database.cpp | |
parent | 5b24aa5f6f969c07be09468eceb6a184f3f9fc8a (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.cpp | 6 |
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;
}
|