mirror of
https://github.com/reactos/reactos.git
synced 2025-05-28 13:38:19 +00:00
[mvdm] Fix missing pointer dereference
Original code compared against the pointer value rather than the first byte
This commit is contained in:
parent
fb7a0344cd
commit
5bfe6a5376
2 changed files with 3 additions and 3 deletions
|
@ -169,7 +169,7 @@ UpdateVdmMenuDisks(VOID)
|
|||
|
||||
if (GlobalSettings.FloppyDisks[i].Length != 0 &&
|
||||
GlobalSettings.FloppyDisks[i].Buffer &&
|
||||
GlobalSettings.FloppyDisks[i].Buffer != L'\0')
|
||||
*GlobalSettings.FloppyDisks[i].Buffer != L'\0')
|
||||
{
|
||||
/* Update item text */
|
||||
_snwprintf(szMenuString2, ARRAYSIZE(szMenuString2), szMenuString1, i, GlobalSettings.FloppyDisks[i].Buffer);
|
||||
|
|
|
@ -592,7 +592,7 @@ BOOLEAN EmulatorInitialize(HANDLE ConsoleInput, HANDLE ConsoleOutput)
|
|||
{
|
||||
if (GlobalSettings.FloppyDisks[i].Length != 0 &&
|
||||
GlobalSettings.FloppyDisks[i].Buffer &&
|
||||
GlobalSettings.FloppyDisks[i].Buffer != '\0')
|
||||
*GlobalSettings.FloppyDisks[i].Buffer != L'\0')
|
||||
{
|
||||
if (!MountDisk(FLOPPY_DISK, i, GlobalSettings.FloppyDisks[i].Buffer, FALSE))
|
||||
{
|
||||
|
@ -611,7 +611,7 @@ BOOLEAN EmulatorInitialize(HANDLE ConsoleInput, HANDLE ConsoleOutput)
|
|||
{
|
||||
if (GlobalSettings.HardDisks[i].Length != 0 &&
|
||||
GlobalSettings.HardDisks[i].Buffer &&
|
||||
GlobalSettings.HardDisks[i].Buffer != L'\0')
|
||||
*GlobalSettings.HardDisks[i].Buffer != L'\0')
|
||||
{
|
||||
if (!MountDisk(HARD_DISK, i, GlobalSettings.HardDisks[i].Buffer, FALSE))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue