Details
-
Bug
-
Resolution: Unresolved
-
Trivial
-
None
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
