Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-20462

Winmine: lacking fallback option for "difficulty", "Width", ... reading in Registry leading to wrong menu check mark

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Trivial
    • None
    • Wine

    Description

      reactos-bootcd-0.4.16-dev-2204-g370eb8c-x86-gcc-lin-dbg

      • Open Regedit and change "Difficulty" to an invalid value (eg: 99)
      • Start Winmine
      • Opens with last used row/col but does not set any difficulty (does not recognize from row/col and does not set custom)
      • Guilty Code: SetDifficulty function where CheckMenuItem( hMenu, IDM_BEGINNER + difficulty, MF_CHECKED ); while p_board->difficulty is not checked for being in acceptable bounds : https://git.reactos.org/?p=reactos.git;a=blob;f=base/applications/games/winmine/main.c#l221

      • Similarly, changing "width" can lead to a "beginner" being checked while higher complexity

      Attachments

        Activity

          People

            Unassigned Unassigned
            KRosUser KRosUser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: