Daily WTF
-
Return value
Type: UINT
If the specified item does not exist, the return value is -1.Ref:
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getmenustate#return-value -
-
but I also like this one very much
-
@ekopalypse
Hehe, you passed there before I did.As a result, that’s my only solution:
https://github.com/notepad-plus-plus/notepad-plus-plus/commit/94154b0f0e281b4bbfad9c59f8d01c9dff305c12#diff-ea60a18644324fe9be5958a9435c911ba104980e68482bdab1037a3c134c18c9R107 -
With me it’s a bit different - I ignored it, so I didn’t implement it :-) … until now, anyway.
-
Jokes aside, this is expected to be UINT_MAX.
See my comment for more info https://github.com/notepad-plus-plus/notepad-plus-plus/commit/94154b0f0e281b4bbfad9c59f8d01c9dff305c12#commitcomment-66609009 -
Why like this glibc???