From cd0ceca76f49b68d87853c30594d9455769c0b56 Mon Sep 17 00:00:00 2001 From: Markus Fischer Date: Tue, 19 Mar 2002 21:18:18 +0000 Subject: [PATCH] - Fix bug spotted by Lukas Schroeder . --- ext/ming/ming.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/ming/ming.c b/ext/ming/ming.c index 7cf91e0027..79553186af 100644 --- a/ext/ming/ming.c +++ b/ext/ming/ming.c @@ -209,7 +209,7 @@ static SWFInput getInput(zval **zfile TSRMLS_DC) what = zend_fetch_resource(zfile TSRMLS_CC, -1, "File-Handle", &type, 1, php_file_le_stream()); - if (!php_stream_cast((php_stream*)what, PHP_STREAM_AS_STDIO, (void*)&file, REPORT_ERRORS)) { + if (php_stream_cast((php_stream*)what, PHP_STREAM_AS_STDIO, (void*)&file, REPORT_ERRORS) != SUCCESS) { return NULL; } -- 2.50.1