taskmgr: Add full translation [1/2]

Alexandre Julliard julliard at winehq.org
Thu Jul 17 06:15:01 CDT 2008


Vladimir Pankratov <scriptkid at mail.ru> writes:

> @@ -50,10 +51,17 @@
>  int  nOldWidth;                  /* Holds the previous client area width */
>  int  nOldHeight;                 /* Holds the previous client area height */
>  
> +TCHAR szLoadedString[250];       /* Variable where load string from resource*/
> +
>  BOOL bInMenuLoop = FALSE;        /* Tells us if we are in the menu loop */
>  
>  TASKMANAGER_SETTINGS TaskManagerSettings;
>  
> +BOOL GetStringFromRes(UINT uID)
> +{
> +    LoadStringA(hInst, uID, szLoadedString, sizeof(szLoadedString));
> +    return TRUE;
> +}

That's ugly, you should return string somehow, not use a global
variable.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list