mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
mountutils: use TCHAR where appropriate
This commit is contained in:
parent
5a2815fefc
commit
da526ca667
1 changed files with 3 additions and 3 deletions
|
@ -40,7 +40,7 @@ HANDLE CreateVolumeHandleFromDevicePath(LPCTSTR devicePath, DWORD flags) {
|
||||||
|
|
||||||
HANDLE CreateVolumeHandleFromDriveLetter(TCHAR driveLetter, DWORD flags) {
|
HANDLE CreateVolumeHandleFromDriveLetter(TCHAR driveLetter, DWORD flags) {
|
||||||
TCHAR devicePath[8];
|
TCHAR devicePath[8];
|
||||||
sprintf_s(devicePath, "\\\\.\\%c:", driveLetter);
|
sprintf_s(devicePath, TEXT("\\\\.\\%c:"), driveLetter);
|
||||||
return CreateVolumeHandleFromDevicePath(devicePath, flags);
|
return CreateVolumeHandleFromDevicePath(devicePath, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ ULONG GetDeviceNumberFromVolumeHandle(HANDLE volume) {
|
||||||
|
|
||||||
BOOL IsDriveFixed(TCHAR driveLetter) {
|
BOOL IsDriveFixed(TCHAR driveLetter) {
|
||||||
TCHAR rootName[5];
|
TCHAR rootName[5];
|
||||||
sprintf_s(rootName, "%c:\\", driveLetter);
|
sprintf_s(rootName, TEXT("%c:\\"), driveLetter);
|
||||||
return GetDriveType(rootName) == DRIVE_FIXED;
|
return GetDriveType(rootName) == DRIVE_FIXED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -262,7 +262,7 @@ MOUNTUTILS_RESULT EjectFixedDriveByDeviceNumber(ULONG deviceNumber) {
|
||||||
|
|
||||||
CONFIGRET status;
|
CONFIGRET status;
|
||||||
PNP_VETO_TYPE vetoType = PNP_VetoTypeUnknown;
|
PNP_VETO_TYPE vetoType = PNP_VetoTypeUnknown;
|
||||||
char vetoName[MAX_PATH];
|
TCHAR vetoName[MAX_PATH];
|
||||||
|
|
||||||
// It's often seen that the removal fails on the first
|
// It's often seen that the removal fails on the first
|
||||||
// attempt but works on the second attempt.
|
// attempt but works on the second attempt.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue