This commit is contained in:
qingchao 2026-02-27 15:13:59 +08:00
parent d0a368a17a
commit 4a50f75b72
2 changed files with 6 additions and 2 deletions

View File

@ -469,6 +469,7 @@ AES_USB::HIDDevice::HIDDevice() {
#elif _WIN32
deviceHandle = INVALID_HANDLE_VALUE;
preparsedData = 0;
#else
#endif

View File

@ -148,8 +148,11 @@ void Widget::LoopRunning() {
ui->R_PID->setText(PID.c_str());
ui->R_VID->setText(VID.c_str());
ui->R_PIN->clear();
const CTL::String str = (char*)key.PIN;
ui->R_PIN->setText(str.c_str());
char PIN[21] = {0};
std::memcpy(PIN, key.PIN, sizeof key.PIN);
PIN[20] = '\0';
const QString str = QString::fromLocal8Bit(PIN);
ui->R_PIN->setText(str);
});
CTL::Thread::SleepMS(1000);
const int r = writeInit();