Author: cfinck
Date: Tue Jun 23 20:33:26 2009
New Revision: 41595
URL: http://svn.reactos.org/svn/reactos?rev=41595&view=rev
Log:
Hack: Add the APPDATA variable to the environment created by userenv.
This code is not entirely correct due to the hardcoded string, but otherwise fits well into our existing CreateEnvironmentBlock implementation and served us well in the past.
Modified:
branches/ros-branch-0_3_10/reactos/dll/win32/userenv/environment.c
Modified: branches/ros-branch-0_3_10/reactos/dll/win32/userenv/environment.c
URL: http://svn.reactos.org/svn/reactos/branches/ros-branch-0_3_10/reactos/dll/w…
==============================================================================
--- branches/ros-branch-0_3_10/reactos/dll/win32/userenv/environment.c [iso-8859-1] (original)
+++ branches/ros-branch-0_3_10/reactos/dll/win32/userenv/environment.c [iso-8859-1] Tue Jun 23 20:33:26 2009
@@ -379,6 +379,9 @@
L"USERPROFILE",
Buffer,
FALSE);
+
+ wcscat(Buffer, L"\\Application Data");
+ SetUserEnvironmentVariable(lpEnvironment, L"APPDATA", Buffer, FALSE);
}
/* FIXME: Set 'USERDOMAIN' variable */
Author: cfinck
Date: Tue Jun 23 19:34:47 2009
New Revision: 41593
URL: http://svn.reactos.org/svn/reactos?rev=41593&view=rev
Log:
Hack: Revert the dispatch routine for WM_SETREDRAW to the pre-Wine-1.1.7 version to hackfix mIRC and probably other applications using riched20.
Modified:
branches/ros-branch-0_3_10/reactos/dll/win32/riched20/editor.c
Modified: branches/ros-branch-0_3_10/reactos/dll/win32/riched20/editor.c
URL: http://svn.reactos.org/svn/reactos/branches/ros-branch-0_3_10/reactos/dll/w…
==============================================================================
--- branches/ros-branch-0_3_10/reactos/dll/win32/riched20/editor.c [iso-8859-1] (original)
+++ branches/ros-branch-0_3_10/reactos/dll/win32/riched20/editor.c [iso-8859-1] Tue Jun 23 19:34:47 2009
@@ -4162,7 +4162,9 @@
ME_SendRequestResize(editor, TRUE);
return 0;
case WM_SETREDRAW:
- goto do_default;
+ if (wParam)
+ ME_RewrapRepaint(editor);
+ return 0;
case WM_SIZE:
{
RECT clientRect;