mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
fix typo
This commit is contained in:
parent
d6f7020eaa
commit
fe8daf2a28
1 changed files with 5 additions and 5 deletions
|
@ -32,7 +32,7 @@ __forceinline static wchar_t *php_win32_cp_to_w_int(const char* in, size_t in_le
|
||||||
int ret_len, tmp_len;
|
int ret_len, tmp_len;
|
||||||
|
|
||||||
if (!in || in_len > (size_t)INT_MAX) {
|
if (!in || in_len > (size_t)INT_MAX) {
|
||||||
SET_ERRNO_FROM_WIN32_CODE(ERROR_INVALID_PARAMETERER);
|
SET_ERRNO_FROM_WIN32_CODE(ERROR_INVALID_PARAMETER);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
assert(in_len ? in[in_len] == L'\0' : 1);
|
assert(in_len ? in[in_len] == L'\0' : 1);
|
||||||
|
@ -97,13 +97,13 @@ PW32CP wchar_t *php_win32_cp_conv_ascii_to_w(const char* in, size_t in_len, size
|
||||||
assert(in && in_len ? in[in_len] == '\0' : 1);
|
assert(in && in_len ? in[in_len] == '\0' : 1);
|
||||||
|
|
||||||
if (!in) {
|
if (!in) {
|
||||||
SET_ERRNO_FROM_WIN32_CODE(ERROR_INVALID_PARAMETERER);
|
SET_ERRNO_FROM_WIN32_CODE(ERROR_INVALID_PARAMETER);
|
||||||
return NULL;
|
return NULL;
|
||||||
} else if (0 == in_len) {
|
} else if (0 == in_len) {
|
||||||
/* Not binary safe. */
|
/* Not binary safe. */
|
||||||
in_len = strlen(in);
|
in_len = strlen(in);
|
||||||
if (in_len > (size_t)INT_MAX) {
|
if (in_len > (size_t)INT_MAX) {
|
||||||
SET_ERRNO_FROM_WIN32_CODE(ERROR_INVALID_PARAMETERER);
|
SET_ERRNO_FROM_WIN32_CODE(ERROR_INVALID_PARAMETER);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -134,7 +134,7 @@ PW32CP wchar_t *php_win32_cp_conv_ascii_to_w(const char* in, size_t in_len, size
|
||||||
|
|
||||||
if (-1 == k) {
|
if (-1 == k) {
|
||||||
free(ret);
|
free(ret);
|
||||||
SET_ERRNO_FROM_WIN32_CODE(ERROR_INVALID_PARAMETERER);
|
SET_ERRNO_FROM_WIN32_CODE(ERROR_INVALID_PARAMETER);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -171,7 +171,7 @@ __forceinline static char *php_win32_cp_from_w_int(const wchar_t* in, size_t in_
|
||||||
char* target;
|
char* target;
|
||||||
|
|
||||||
if (!in || in_len > INT_MAX) {
|
if (!in || in_len > INT_MAX) {
|
||||||
SET_ERRNO_FROM_WIN32_CODE(ERROR_INVALID_PARAMETERER);
|
SET_ERRNO_FROM_WIN32_CODE(ERROR_INVALID_PARAMETER);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
assert(in_len ? in[in_len] == '\0' : 1);
|
assert(in_len ? in[in_len] == '\0' : 1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue