diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-15 17:46:17 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-15 17:46:17 +0000 |
commit | 4b48deb0396fd25e6146d2bd5deec6e792722e4c (patch) | |
tree | 0d1fb911f9723a046c2525dfd6c31a193d2485a0 /plugins/CmdLine | |
parent | 784d212b194e228563936068e69bc1f0e553cee2 (diff) |
MimCmd to set path to libs too
git-svn-id: http://svn.miranda-ng.org/main/trunk@14181 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CmdLine')
-rw-r--r-- | plugins/CmdLine/src/mimcmd_ipc.cpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/plugins/CmdLine/src/mimcmd_ipc.cpp b/plugins/CmdLine/src/mimcmd_ipc.cpp index 6cee3de54f..7ebbfc6cbf 100644 --- a/plugins/CmdLine/src/mimcmd_ipc.cpp +++ b/plugins/CmdLine/src/mimcmd_ipc.cpp @@ -71,7 +71,6 @@ int CreateSystemEvents() int CreateMutexes()
{
hmClient = CreateMutexA(NULL, FALSE, MUTEX_CLIENT_NAME);
-
return (hmClient == NULL);
}
@@ -80,26 +79,20 @@ int CreateSharedMem() hsmCmdLine = CreateFileMappingA(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, sizeof(TSharedData), SHAREDMEM_NAME);
sdCmdLine = (PSharedData) MapViewOfFile(hsmCmdLine, FILE_MAP_WRITE, 0, 0, sizeof(TSharedData));
- return ((hsmCmdLine == NULL) || (sdCmdLine == NULL));
+ return (hsmCmdLine == NULL) || (sdCmdLine == NULL);
}
int DestroySystemEvents()
{
- int res = (!CloseHandle(heServerExec)) || (!CloseHandle(heServerDone)) || (!CloseHandle(heServerClose) || (!CloseHandle(heServerBufferFull)));
-
- return res;
+ return (!CloseHandle(heServerExec)) || (!CloseHandle(heServerDone)) || (!CloseHandle(heServerClose) || (!CloseHandle(heServerBufferFull)));
}
int DestroyMutexes()
{
- int res = !CloseHandle(hmClient);
-
- return res;
+ return !CloseHandle(hmClient);
}
int DestroySharedMem()
{
- int res = (!UnmapViewOfFile(sdCmdLine)) || (!CloseHandle(hsmCmdLine));
-
- return res;
-}
\ No newline at end of file + return (!UnmapViewOfFile(sdCmdLine)) || (!CloseHandle(hsmCmdLine));
+}
|