hermet pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=cf740c2ae179ea393cb4b2b9d80787d47d4c6613
commit cf740c2ae179ea393cb4b2b9d80787d47d4c6613 Author: Hermet Park <her...@hermet.pe.kr> Date: Fri Aug 26 17:17:25 2016 +0900 win32: fix the build break. --- src/bin/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bin/main.c b/src/bin/main.c index 02434c0..c7d4201 100644 --- a/src/bin/main.c +++ b/src/bin/main.c @@ -8,7 +8,7 @@ #ifdef _WIN32 #include <Windows.h> -static HANDLE hMutex = INVALID_HANDLE_VALUE; +static HANDLE hMutex = NULL; #endif typedef struct app_s @@ -952,7 +952,7 @@ enventor_lock_create(void) { #ifdef _WIN32 hMutex = OpenMutex(MUTEX_ALL_ACCESS, 0, ENVENTOR_NAME); - if (hMutex != INVALID_HANDLE_VALUE) + if (hMutex) { fprintf(stdout, "Enventor program is already running!\n\n" "If you are really stuck in launching enventor due to " @@ -1001,10 +1001,10 @@ enventor_lock_remove() if (!own_lock) return; #ifdef _WIN32 - if (INVALID_HANDLE_VALUE != hMutex) + if (hMutex) { - Closehandle(hMutex); - hMutex = INVALID_HANDLE_VALUE; + CloseHandle(hMutex); + hMutex = NULL; } #else //Tempoary Folder --