com php-src: add error message: win32/dllmain.c
| From: | Anatol Belski | Date: | Mon, 08 Jun 2015 05:06:21 +0000 |
| Subject: | com php-src: add error message: win32/dllmain.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-87081@lists.php.net to get a copy of this message | ||
Commit: 349cf3229c41dbc4136f33a43cd1af8f45330bf6
Author: Anatol Belski <ab@php.net> Tue, 2 Jun 2015 20:30:08 +0200
Parents: 6c89d2d9def6ffbf960e301463f6f2468c6a3724
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=349cf3229c41dbc4136f33a43cd1af8f45330bf6
Log:
add error message
Changed paths:
M win32/dllmain.c
Diff:
diff --git a/win32/dllmain.c b/win32/dllmain.c
index 9e7bcc1..92773a0 100644
--- a/win32/dllmain.c
+++ b/win32/dllmain.c
@@ -40,6 +40,10 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID dummy)
{
case DLL_PROCESS_ATTACH:
ret = ret && php_win32_init_gettimeofday();
+ if (!ret) {
+ fprintf(stderr, "gettimeofday() initialization failed");
+ return ret;
+ }
break;
#if 0 /* prepared */
case DLL_PROCESS_DETACH: