Author: gedmurphy
Date: Mon Oct 6 14:15:09 2008
New Revision: 36668
URL: http://svn.reactos.org/svn/reactos?rev=36668&view=rev
Log:
It looked like we could get away with removing this hack, but it seems it still causes painting problems when increasing the width. No time to investigate at the moment. (anyone else wanna take a look?)
Modified:
trunk/reactos/base/shell/explorer/shell/mainframe.cpp
Modified: trunk/reactos/base/shell/explorer/shell/mainframe.cpp
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer/shell/…
==============================================================================
--- trunk/reactos/base/shell/explorer/shell/mainframe.cpp [iso-8859-1] (original)
+++ trunk/reactos/base/shell/explorer/shell/mainframe.cpp [iso-8859-1] Mon Oct 6 14:15:09 2008
@@ -306,8 +306,15 @@
break;
case WM_SIZE: {
- resize_frame(LOWORD(lparam), HIWORD(lparam));
- SendMessage(_hwndrebar, WM_SIZE, 0, 0);
+#ifdef __REACTOS__ ///@todo Work around to display rebar in ROS (with flickering) as long as the control isn't fixed
+ int height = SendMessage(_hwndrebar, RB_GETBARHEIGHT, 0, 0);
+ MoveWindow(_hwndrebar, 0, 0, LOWORD(lparam), height, TRUE);
+#else
+ resize_frame(LOWORD(lparam), HIWORD(lparam));
+ SendMessage(_hwndrebar, WM_SIZE, 0, 0);
+#endif
+
+
break;} // do not pass message to DefFrameProc
case WM_GETMINMAXINFO: {
Author: fireball
Date: Mon Oct 6 05:50:22 2008
New Revision: 36663
URL: http://svn.reactos.org/svn/reactos?rev=36663&view=rev
Log:
Cecill Etheredge <ijsf(a)gmx.net>
- The RtlEnumerateGenericTableWithoutSplaying function in RTL (generictable.c) effectively performs an endless enumeration, never advancing to the next successor element in the tree because of a bug in the code. Fix this. (Bug #3756).
- The RtlDelete code misses a line of code checking whether the node is a root,
and instead always returns NULL (assuming it is the root). Fix this. (Bug #3760).
See issue #3760 for more details.
Modified:
trunk/reactos/lib/rtl/generictable.c
trunk/reactos/lib/rtl/splaytree.c
Modified: trunk/reactos/lib/rtl/generictable.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/generictable.c?rev…
==============================================================================
--- trunk/reactos/lib/rtl/generictable.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/generictable.c [iso-8859-1] Mon Oct 6 05:50:22 2008
@@ -390,7 +390,7 @@
else
{
/* Otherwise, try using the real successor */
- FoundNode = RtlRealSuccessor(Table->TableRoot);
+ FoundNode = RtlRealSuccessor(*RestartKey);
if (FoundNode) *RestartKey = FoundNode;
}
Modified: trunk/reactos/lib/rtl/splaytree.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/splaytree.c?rev=36…
==============================================================================
--- trunk/reactos/lib/rtl/splaytree.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/splaytree.c [iso-8859-1] Mon Oct 6 05:50:22 2008
@@ -40,7 +40,7 @@
if (!(RtlLeftChild(N)) && !(RtlRightChild(N)))
{
/* If we are also the root, then the tree is gone */
- return NULL;
+ if (RtlIsRoot(N)) return NULL;
/* Get our parent */
P = RtlParent(N);
Author: fireball
Date: Mon Oct 6 05:19:55 2008
New Revision: 36661
URL: http://svn.reactos.org/svn/reactos?rev=36661&view=rev
Log:
Dmitry Gorbachev
- lfn_get() reads past the end of name[]. Though harmless, it produces 'array subscript is above array bounds' compiler warning (treated as error).
See issue #3762 for more details.
Modified:
trunk/reactos/lib/fslib/vfatlib/check/lfn.c
Modified: trunk/reactos/lib/fslib/vfatlib/check/lfn.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fslib/vfatlib/check/lf…
==============================================================================
--- trunk/reactos/lib/fslib/vfatlib/check/lfn.c [iso-8859-1] (original)
+++ trunk/reactos/lib/fslib/vfatlib/check/lfn.c [iso-8859-1] Mon Oct 6 05:19:55 2008
@@ -410,8 +410,12 @@
}
}
- for (sum = 0, i = 0; i < 11; i++)
+ for (sum = 0, i = 0; i < 8; i++)
sum = (((sum&1) << 7) | ((sum&0xfe) >> 1)) + de->name[i];
+
+ for (i = 0; i < 3; i++)
+ sum = (((sum&1) << 7) | ((sum&0xfe) >> 1)) + de->ext[i];
+
if (sum != lfn_checksum) {
/* checksum doesn't match, long name doesn't apply to this alias */
/* Causes: 1) alias renamed */