com php-src: fix typo: win32/codepage.c
| From: | Anatol Belski | Date: | Fri, 29 Jul 2016 13:08:55 +0000 |
| Subject: | com php-src: fix typo: win32/codepage.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-93475@lists.php.net to get a copy of this message | ||
Commit: fe8daf2a28424f701d3f14412ff4757d80ddf088
Author: Anatol Belski <ab@php.net> Fri, 29 Jul 2016 15:08:55 +0200
Parents: d6f7020eaac62f0beecd69e29e0ce1ded9bfc48d
Branches: PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=fe8daf2a28424f701d3f14412ff4757d80ddf088
Log:
fix typo
Changed paths:
M win32/codepage.c
Diff:
diff --git a/win32/codepage.c b/win32/codepage.c
index 3769b96..d6f42d3 100644
--- a/win32/codepage.c
+++ b/win32/codepage.c
@@ -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;
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;
}
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);
if (!in) {
- SET_ERRNO_FROM_WIN32_CODE(ERROR_INVALID_PARAMETERER);
+ SET_ERRNO_FROM_WIN32_CODE(ERROR_INVALID_PARAMETER);
return NULL;
} else if (0 == in_len) {
/* Not binary safe. */
in_len = strlen(in);
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;
}
}
@@ -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) {
free(ret);
- SET_ERRNO_FROM_WIN32_CODE(ERROR_INVALID_PARAMETERER);
+ SET_ERRNO_FROM_WIN32_CODE(ERROR_INVALID_PARAMETER);
return NULL;
}
@@ -171,7 +171,7 @@ __forceinline static char *php_win32_cp_from_w_int(const wchar_t* in, size_t in_
char* target;
if (!in || in_len > INT_MAX) {
- SET_ERRNO_FROM_WIN32_CODE(ERROR_INVALID_PARAMETERER);
+ SET_ERRNO_FROM_WIN32_CODE(ERROR_INVALID_PARAMETER);
return NULL;
}
assert(in_len ? in[in_len] == '\0' : 1);