mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-07 14:15:58 -04:00
Merge pull request #7086 from tom-cosgrove-arm/dont-use-lstrlenW-228
Backport 2.28: Don't use lstrlenW() on Windows
This commit is contained in:
commit
b0926916f6
@ -1601,8 +1601,8 @@ int mbedtls_x509_crt_parse_path(mbedtls_x509_crt *chain, const char *path)
|
||||
}
|
||||
|
||||
w_ret = WideCharToMultiByte(CP_ACP, 0, file_data.cFileName,
|
||||
lstrlenW(file_data.cFileName),
|
||||
p, (int) len - 1,
|
||||
-1,
|
||||
p, (int) len,
|
||||
NULL, NULL);
|
||||
if (w_ret == 0) {
|
||||
ret = MBEDTLS_ERR_X509_FILE_IO_ERROR;
|
||||
|
Loading…
x
Reference in New Issue
Block a user