[COMDLG32] Sync with Wine Staging 3.3. CORE-14434
[reactos.git] / dll / win32 / comdlg32 / cdlg32.c
index 118a3e3..daf03f0 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
-
-
 #include <stdarg.h>
 
 #define COBJMACROS
 
-#include <windef.h>
+#include "windef.h"
 #include "winbase.h"
-#include <winuser.h>
-#include <wingdi.h>
-#include <objbase.h>
+#include "wingdi.h"
+#include "winuser.h"
+#include "objbase.h"
 #include "rpcproxy.h"
-#include <commdlg.h>
-#include <cderr.h>
-#include <wine/debug.h>
+#include "commdlg.h"
+#include "cderr.h"
+#include "wine/debug.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(commdlg);
 
@@ -288,7 +285,11 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv)
  */
 HRESULT WINAPI DllRegisterServer(void)
 {
+#ifdef __REACTOS__
     return E_FAIL; // FIXME: __wine_register_resources(COMDLG32_hInstance);
+#else
+    return __wine_register_resources(COMDLG32_hInstance);
+#endif
 }
 
 /***********************************************************************
@@ -296,7 +297,11 @@ HRESULT WINAPI DllRegisterServer(void)
  */
 HRESULT WINAPI DllUnregisterServer(void)
 {
+#ifdef __REACTOS__
     return E_FAIL; // FIXME: __wine_unregister_resources(COMDLG32_hInstance);
+#else
+    return __wine_unregister_resources(COMDLG32_hInstance);
+#endif
 }
 
 #endif /* Win 7 */