changeset 2095:a3e176450077

OS/2: Fix a warning in dw_notication_new(), return 0 not NULL. Also move dw_init() above the feature tests. PMPrintf support gets loaded in dw_init() so the feature test results don't display if called before.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 11 Jun 2020 03:22:27 +0000
parents 8de0a767c0e5
children 5110598705c2
files dwtest.c os2/dw.c
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/dwtest.c	Thu Jun 11 02:32:20 2020 +0000
+++ b/dwtest.c	Thu Jun 11 03:22:27 2020 +0000
@@ -1794,6 +1794,9 @@
     ULONG notebookpage9;
     DWFEATURE feat;
 
+    /* Initialize the Dynamic Windows engine */
+    dw_init(TRUE, argc, argv);
+
     /* Test all the features and display the results */
     for(feat=0;feat<DW_FEATURE_MAX && DWFeatureList[feat];feat++)
     {
@@ -1808,9 +1811,6 @@
         dw_debug("%s: %s (%d)\n", DWFeatureList[feat], status, result);
     }
 
-    /* Initialize the Dynamic Windows engine */
-    dw_init(TRUE, argc, argv);
-
     /* Create our window */
     mainwindow = dw_window_new( HWND_DESKTOP, "dwindows test UTF8 中国語 (繁体) cañón", flStyle | DW_FCF_SIZEBORDER | DW_FCF_MINMAX);
     dw_window_set_icon(mainwindow, fileicon);
--- a/os2/dw.c	Thu Jun 11 02:32:20 2020 +0000
+++ b/os2/dw.c	Thu Jun 11 03:22:27 2020 +0000
@@ -12408,7 +12408,7 @@
  */
 HWND API dw_notification_new(const char *title, HPIXMAP pixmap, const char *description, ...)
 {
-   return NULL;
+   return 0;
 }
 
 /*