VirtualBox

Changeset 102499 in vbox


Ignore:
Timestamp:
Dec 6, 2023 11:06:46 AM (12 months ago)
Author:
vboxsync
Message:

Main/UsbCardReader: Don't try to copy the reader name if it is NULL (which happens with the Apple Silicon variant of Microsoft Remote Desktop app), ticketref:21820

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/UsbCardReader.cpp

    r98286 r102499  
    792792                    }
    793793
    794                     RTStrCopy(pRemote->reader.szReaderName, sizeof(pRemote->reader.szReaderName), pRsp->apszNames[i]);
     794                    if (pRsp->apszNames[i])
     795                        RTStrCopy(pRemote->reader.szReaderName, sizeof(pRemote->reader.szReaderName), pRsp->apszNames[i]);
     796                    else
     797                        RT_ZERO(pRemote->reader.szReaderName);
    795798                    pRemote->reader.fHandle = false;
    796799                    pRemote->reader.fAvailable = true;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette