Skip to content

Commit 744f18c

Browse files
author
Alex Cole
committed
Fix the invalid menu value.
1 parent 59dbc92 commit 744f18c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

file.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ native readcfg(const cfgname[] = "", const section[] = "", const key[], value[],
414414
* <param name="section">The section to look for the key. If this parameter is not set, the
415415
* function reads the key outside any section.</param>
416416
* <param name="key">The key whose value must be looked up.</param>
417-
* <param name="defvalue">The string to copy into parameter value in the case that the function
417+
* <param name="defvalue">The value to return in the case that the function
418418
* cannot read the field from the INI file.</param>
419419
* <returns>The numeric value if the field, or the value of <c>defvalue</c> if the field was not
420420
* found in the section and/or at the key.</returns>

omp_menu.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
/**
4444
* <library>omp_menu</library>
4545
*/
46-
const Menu:INVALID_MENU = Menu:0xFF;
47-
#define INVALID_MENU (Menu:255)
46+
const Menu:INVALID_MENU = Menu:-1;
47+
#define INVALID_MENU (Menu:-1)
4848

4949
/*
5050

0 commit comments

Comments
 (0)