* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
+#define WIN32_NO_STATUS
+#define _INC_WINDOWS
+#define COM_NO_WINDOWS_H
+
#include <stdarg.h>
-#include <string.h>
-#include "windef.h"
-#include "winbase.h"
-#include "wingdi.h"
-#include "winreg.h"
-#include "winerror.h"
-#include "winuser.h"
-#include "richedit.h"
-#include "shlwapi.h"
-
-#include "wine/debug.h"
+//#include <string.h>
+#include <windef.h>
+#include <winbase.h>
+#include <wingdi.h>
+#include <winreg.h>
+//#include "winerror.h"
+#include <winuser.h>
+#include <richedit.h>
+#include <shlwapi.h>
+
+#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(richedit);
extern LRESULT WINAPI RichEdit10ANSIWndProc(HWND, UINT, WPARAM, LPARAM);
-/* Unregisters the window class. */
-static BOOL RICHED32_Unregister(void)
-{
- TRACE("\n");
-
- UnregisterClassA(RICHEDIT_CLASS10A, NULL);
- return TRUE;
-}
-
-
/* Registers the window class. */
static BOOL RICHED32_Register(void)
{
return RICHED32_Register();
case DLL_PROCESS_DETACH:
- return RICHED32_Unregister();
+ if (lpvReserved) break;
+ UnregisterClassA(RICHEDIT_CLASS10A, NULL);
+ break;
}
return TRUE;
}