diff --git a/libfreerdp/core/smartcardlogon.c b/libfreerdp/core/smartcardlogon.c index 953783bc6..2d88255ab 100644 --- a/libfreerdp/core/smartcardlogon.c +++ b/libfreerdp/core/smartcardlogon.c @@ -31,6 +31,7 @@ #include #include +#include #include @@ -747,7 +748,14 @@ static SmartcardCertInfo* smartcardCertInfo_New(const char* privKeyPEM, const ch goto fail; } - cert->reader = ConvertUtf8ToWCharAlloc("FreeRDP Emulator", NULL); + { + char* str = NULL; + size_t len = 0; + (void)winpr_asprintf(&str, &len, "%s Emulator", freerdp_getApplicationDetailsString()); + if (str) + cert->reader = ConvertUtf8NToWCharAlloc(str, len, NULL); + free(str); + } if (!cert->reader) goto fail;