diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-09-18 04:24:51 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-09-18 04:24:51 +0200 |
commit | cbca9cd89a79ea0dafbbfa843e2b239ed6cc20a9 (patch) | |
tree | ced9573742917d0bb114135e2e3050b4e37d24b0 | |
parent | 73a6c374bd9233b2f1fd9696a69983bb3b7d5563 (diff) |
reformat
-rw-r--r-- | freetrackclient/freetrackclient.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/freetrackclient/freetrackclient.c b/freetrackclient/freetrackclient.c index 84346c3c..717a1c6a 100644 --- a/freetrackclient/freetrackclient.c +++ b/freetrackclient/freetrackclient.c @@ -47,15 +47,16 @@ static const char* dllProvider = "FreeTrack"; static bool FTCreateMapping(void) { - if ( pMemData != NULL ) { + if (pMemData != NULL) { return true; } - dbg_report("FTCreateMapping request (pMemData == NULL).\n"); - - hFTMemMap = CreateFileMappingA( INVALID_HANDLE_VALUE , 00 , PAGE_READWRITE , 0 , - sizeof( FTHeap ), - (LPCSTR) FT_MM_DATA ); + hFTMemMap = CreateFileMappingA(INVALID_HANDLE_VALUE, + NULL, + PAGE_READWRITE, + 0, + sizeof(FTHeap), + (LPCSTR) FT_MM_DATA); if (hFTMemMap == NULL) { @@ -63,7 +64,7 @@ static bool FTCreateMapping(void) return false; } - pMemData = (FTHeap*) MapViewOfFile(hFTMemMap, FILE_MAP_WRITE, 0, 0, sizeof( FTHeap ) ); + pMemData = (FTHeap*) MapViewOfFile(hFTMemMap, FILE_MAP_WRITE, 0, 0, sizeof(FTHeap)); hFTMutex = CreateMutexA(NULL, false, FREETRACK_MUTEX); return true; @@ -71,7 +72,6 @@ static bool FTCreateMapping(void) FT_EXPORT(bool) FTGetData(FTData* data) { -// dbg_report("NP_GetData called."); if (FTCreateMapping() == false) return false; |