mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 13:44:33 +02:00
Fix VS 2005 compatibility issue
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1668 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
194479d645
commit
c4bbb32b30
@ -204,14 +204,15 @@ Returns:
|
|||||||
if (DiskType == EfiWinNtVirtualDisks) {
|
if (DiskType == EfiWinNtVirtualDisks) {
|
||||||
WinNtIo->WinNtThunk->SPrintf (
|
WinNtIo->WinNtThunk->SPrintf (
|
||||||
Buffer,
|
Buffer,
|
||||||
|
sizeof (Buffer),
|
||||||
L"Diskfile%d",
|
L"Diskfile%d",
|
||||||
WinNtIo->InstanceNumber
|
WinNtIo->InstanceNumber
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
if (*Str >= 'A' && *Str <= 'Z' || *Str >= 'a' && *Str <= 'z') {
|
if (*Str >= 'A' && *Str <= 'Z' || *Str >= 'a' && *Str <= 'z') {
|
||||||
WinNtIo->WinNtThunk->SPrintf (Buffer, L"\\\\.\\%c:", *Str);
|
WinNtIo->WinNtThunk->SPrintf (Buffer, sizeof (Buffer), L"\\\\.\\%c:", *Str);
|
||||||
} else {
|
} else {
|
||||||
WinNtIo->WinNtThunk->SPrintf (Buffer, L"\\\\.\\PHYSICALDRIVE%c", *Str);
|
WinNtIo->WinNtThunk->SPrintf (Buffer, sizeof (Buffer), L"\\\\.\\PHYSICALDRIVE%c", *Str);
|
||||||
}
|
}
|
||||||
|
|
||||||
Str++;
|
Str++;
|
||||||
|
@ -462,7 +462,7 @@ Returns:
|
|||||||
|
|
||||||
WinNtDevice->ControllerNameTable = NULL;
|
WinNtDevice->ControllerNameTable = NULL;
|
||||||
|
|
||||||
WinNtThunk->SPrintf (ComponentName, L"%s", WinNtDevice->WinNtIo.EnvString);
|
WinNtThunk->SPrintf (ComponentName, sizeof (ComponentName), L"%s", WinNtDevice->WinNtIo.EnvString);
|
||||||
|
|
||||||
WinNtDevice->DevicePath = WinNtBusCreateDevicePath (
|
WinNtDevice->DevicePath = WinNtBusCreateDevicePath (
|
||||||
ParentDevicePath,
|
ParentDevicePath,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user