[PATCH 1/3] msvcp140: Implement _Temp_get (v2).

Mathew Hodson mathew.hodson at gmail.com
Thu Jul 19 19:05:08 CDT 2018


On Thu, 19 Jul 2018 at 15:14, Stefan Dösinger <stefan at codeweavers.com> wrote:
> @@ -1060,6 +1062,29 @@ static void test_Unlink(void)
>      ok(SetCurrentDirectoryW(current_path), "SetCurrentDirectoryW failed\n");
>  }
>
> +static void test_Temp_get(void)
> +{
> +    WCHAR path[MAX_PATH + 1], temp_path[MAX_PATH];
> +    WCHAR *retval;
> +    DWORD len;
> +
> +    GetTempPathW(sizeof(temp_path)/sizeof(*temp_path), temp_path);

What about using ARRAY_SIZE() or MAX_PATH here?

--
Mathew Hodson



More information about the wine-devel mailing list