Alexander Nicolaysen Sørnes <a...@thehandofagony.com> writes:

> @@ -109,10 +109,10 @@ static void add_fav_to_menu(HMENU menu, LPWSTR title, 
> LPCWSTR url)
>  {
>      MENUITEMINFOW item;
>      /* Subtract the number of standard elements in the Favorites menu */
> -    INT favcount = GetMenuItemCount(menu) - 2;
> +    static INT favcount;
>      LPWSTR urlbuf;

The previous version was better, you don't want a static variable for
this, you may want to do it multiple times, or the menu may get changed
somewhere else.

-- 
Alexandre Julliard
julli...@winehq.org


Reply via email to