diff -r 6431f26aa501 -r 3291024e00da targets/Win32/plc_Win32_main.c --- a/targets/Win32/plc_Win32_main.c Thu Feb 16 14:34:40 2017 +0500 +++ b/targets/Win32/plc_Win32_main.c Thu Feb 16 14:35:12 2017 +0500 @@ -84,7 +84,7 @@ if (debug_sem == NULL) { printf("startPLC CreateSemaphore debug_sem error: %d\n", GetLastError()); - return; + return 1; } debug_wait_sem = CreateSemaphore( @@ -96,7 +96,7 @@ if (debug_wait_sem == NULL) { printf("startPLC CreateSemaphore debug_wait_sem error: %d\n", GetLastError()); - return; + return 1; } python_sem = CreateSemaphore( @@ -108,7 +108,7 @@ if (python_sem == NULL) { printf("startPLC CreateSemaphore python_sem error: %d\n", GetLastError()); - return; + return 1; } python_wait_sem = CreateSemaphore( NULL, // default security attributes @@ -120,7 +120,7 @@ if (python_wait_sem == NULL) { printf("startPLC CreateSemaphore python_wait_sem error: %d\n", GetLastError()); - return; + return 1; }