Alexandre Julliard : widl: Clear /robust flags when no descriptor is present.
Module: wine Branch: master Commit: a1997507e8e6a1f9de6ae3e3ea5b4bab7d4cc3d3 URL: https://gitlab.winehq.org/wine/wine/-/commit/a1997507e8e6a1f9de6ae3e3ea5b4ba... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Apr 3 16:59:52 2024 +0200 widl: Clear /robust flags when no descriptor is present. For compatibility with midl. --- tools/widl/typegen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c index 5fb77192799..917f4b40a21 100644 --- a/tools/widl/typegen.c +++ b/tools/widl/typegen.c @@ -1668,12 +1668,13 @@ static unsigned int write_conf_or_var_desc(FILE *file, const type_t *cont_type, const type_t *iface = NULL; const char *name; - robust_flags |= RobustEarly; if (!expr) { print_file(file, 2, "NdrFcLong(0xffffffff),\t/* -1 */\n"); + robust_flags = 0; goto done; } + robust_flags |= RobustEarly; if (expr->is_const) {
participants (1)
-
Alexandre Julliard