Kevin Puetz : widl: Remove duplicate '\n\n' in midl_info_guid.

Alexandre Julliard julliard at winehq.org
Mon Sep 21 15:12:15 CDT 2020


Module: wine
Branch: master
Commit: 7955b2e5265742dcfb32d0032be5e0fd1696a209
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=7955b2e5265742dcfb32d0032be5e0fd1696a209

Author: Kevin Puetz <PuetzKevinA at JohnDeere.com>
Date:   Fri Sep 18 16:10:30 2020 -0500

widl: Remove duplicate '\n\n' in midl_info_guid.

Per standard, ctime already ends with '\n\0', so this doubled it.

Signed-off-by: Kevin Puetz <PuetzKevinA at JohnDeere.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 tools/widl/write_msft.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/widl/write_msft.c b/tools/widl/write_msft.c
index 23d1dd8652..aa05dcfe56 100644
--- a/tools/widl/write_msft.c
+++ b/tools/widl/write_msft.c
@@ -2750,7 +2750,7 @@ int create_msft_typelib(typelib_t *typelib)
        and midl's version number */
     time_override = getenv( "WIDL_TIME_OVERRIDE");
     cur_time = time_override ? atol( time_override) : time(NULL);
-    sprintf(info_string, "Created by WIDL version %s at %s\n", PACKAGE_VERSION, ctime(&cur_time));
+    sprintf(info_string, "Created by WIDL version %s at %s", PACKAGE_VERSION, ctime(&cur_time));
     set_custdata(msft, &midl_info_guid, VT_BSTR, info_string, &msft->typelib_header.CustomDataOffset);
     set_custdata(msft, &midl_time_guid, VT_UI4, &cur_time, &msft->typelib_header.CustomDataOffset);
     set_custdata(msft, &midl_version_guid, VT_UI4, &version, &msft->typelib_header.CustomDataOffset);




More information about the wine-cvs mailing list