Re: user32: make menu tests pass on Win 9x/ME -- RESENT
Rein Klazes <wijn(a)wanadoo.nl> writes:
Changelog: dlls/user : menu.c dlls/user/tests : menu.c
- make menu tests pass on Win9x/ME; - rename the macro IS_STRING_ITEM to IS_STRING_ITEM_ONLY, which better reflects what it is doing: absence of other item type flags.
You should not check the Windows version, you should only check the actual behavior. Also I think IS_STRING_ITEM is fine, there's no reason to add _ONLY since there's no other macro that would do a less specific test. -- Alexandre Julliard julliard(a)winehq.org
On Wed, 25 Jan 2006 14:57:19 +0100, you wrote:
Also I think IS_STRING_ITEM is fine, there's no reason to add _ONLY since there's no other macro that would do a less specific test.
Naming can be bad, misleading and ambiguous by itself. I may not have come up with something really pretty, but I hoped to avoid possible confusion that caused a wrong patch like : http://www.winehq.org/pipermail/wine-patches/2006-January/023257.html to be sent in. The name IS_STRING_ITEM seems to test if it is a string item. That actually was its meaning until a few weeks ago. Not now because any menu item can have a string, the places where it is still used are those where absence of other flags is the concern. Rein.
participants (2)
-
Alexandre Julliard -
Rein Klazes