diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-26 19:07:36 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-26 19:07:36 +0000 |
commit | 43ba813ab1bf74c75e426058d7e235f62b0fff52 (patch) | |
tree | e0b0f8d9469cd0372d743a5e7b808dc113dd79dd /src/modules/database/dbini.cpp | |
parent | ba3661a19f8c74a48ec02e38bb775b6e471a97a2 (diff) |
added command line /svc:pluginname support to launch service mode plugins automatically
git-svn-id: http://svn.miranda-ng.org/main/trunk@1202 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/database/dbini.cpp')
-rw-r--r-- | src/modules/database/dbini.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/modules/database/dbini.cpp b/src/modules/database/dbini.cpp index c065949ee4..1af0132f2d 100644 --- a/src/modules/database/dbini.cpp +++ b/src/modules/database/dbini.cpp @@ -480,11 +480,11 @@ static INT_PTR CheckIniImportNow(WPARAM, LPARAM) int InitIni(void)
{
- TCHAR szMirandaDir[MAX_PATH];
-
bModuleInitialized = true;
DoAutoExec();
+
+ TCHAR szMirandaDir[MAX_PATH];
PathToAbsoluteT(_T("."), szMirandaDir, NULL);
hIniChangeNotification = FindFirstChangeNotification(szMirandaDir, 0, FILE_NOTIFY_CHANGE_FILE_NAME);
if (hIniChangeNotification != INVALID_HANDLE_VALUE) {
@@ -496,7 +496,9 @@ int InitIni(void) void UninitIni(void)
{
- if ( !bModuleInitialized) return;
+ if ( !bModuleInitialized)
+ return;
+
CallService(MS_SYSTEM_REMOVEWAIT, (WPARAM)hIniChangeNotification, 0);
FindCloseChangeNotification(hIniChangeNotification);
}
|