PSM_ADDPAGE returns TRUE or FALSE.

diff --git a/dlls/comctl32/propsheet.c b/dlls/comctl32/propsheet.c
index ac42b01..0498804 100644
--- a/dlls/comctl32/propsheet.c
+++ b/dlls/comctl32/propsheet.c
@@ -1517,7 +1517,7 @@
 
   psInfo->nPages++;
 
-  return FALSE;
+  return TRUE;
 }
 
 /******************************************************************************
@@ -2073,8 +2073,21 @@
     }
 
     case PSM_ADDPAGE:
-      PROPSHEET_AddPage(hwnd, (HPROPSHEETPAGE)lParam);
+    {
+      /*
+       * Note: MSVC++ 6.0 documentation says that PSM_ADDPAGE does not have
+       *       a return value. This is not true. PSM_ADDPAGE returns TRUE
+       *       on success or FALSE otherwise, as specified on MSDN Online.
+       *       Also see the MFC code for
+       *       CPropertySheet::AddPage(CPropertyPage* pPage).
+       */
+
+      BOOL msgResult = PROPSHEET_AddPage(hwnd, (HPROPSHEETPAGE)lParam);
+
+      SetWindowLongA(hwnd, DWL_MSGRESULT, msgResult);
+
       return TRUE;
+    }
 
     case PSM_REMOVEPAGE:
       PROPSHEET_RemovePage(hwnd, (int)wParam, (HPROPSHEETPAGE)lParam);