[winpr] use winpr_strerror instead of strerror

use the wrapper from WinPR to use the best implementation available.
This commit is contained in:
akallabeth
2024-02-05 13:01:08 +01:00
committed by akallabeth
parent c415ec1110
commit 2fffcd64b9
28 changed files with 295 additions and 142 deletions

View File

@@ -650,7 +650,9 @@ JNIEXPORT jlong JNICALL Java_com_freerdp_freerdpcore_services_LibFreeRDP_freerdp
if (setenv("HOME", _strdup(envStr), 1) != 0)
{
WLog_FATAL(TAG, "Failed to set environemnt HOME=%s %s [%d]", env, strerror(errno), errno);
char ebuffer[256] = { 0 };
WLog_FATAL(TAG, "Failed to set environemnt HOME=%s %s [%d]", env,
winpr_strerror(errno, ebuffer, sizeof(ebuffer)), errno);
return (jlong)NULL;
}