mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
make it totally safe again
This commit is contained in:
parent
12b0501f55
commit
33ed73cb51
@ -1,6 +1,6 @@
|
||||
/*
|
||||
+----------------------------------------------------------------------+
|
||||
| PHP Version 4 |
|
||||
| PHP Version 5 |
|
||||
+----------------------------------------------------------------------+
|
||||
| Copyright (c) 1997-2003 The PHP Group |
|
||||
+----------------------------------------------------------------------+
|
||||
@ -16,20 +16,13 @@
|
||||
+----------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
#include "php.h"
|
||||
|
||||
PHPAPI char *php_win_err(int error)
|
||||
{
|
||||
static char *buf = NULL;
|
||||
|
||||
#if MBO_0
|
||||
/* leak for now */
|
||||
if (buf) {
|
||||
free(buf);
|
||||
}
|
||||
#endif
|
||||
|
||||
buf = NULL;
|
||||
char *buf = NULL;
|
||||
|
||||
FormatMessage(
|
||||
FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
|
||||
|
Loading…
Reference in New Issue
Block a user