Author: jimtabor
Date: Sat Jan 31 21:44:26 2015
New Revision: 66132
URL: http://svn.reactos.org/svn/reactos?rev=66132&view=rev
Log:
[NtUser]
- Hack fix crash while removing menus. See CORE-9107 for crash information and CORE-8299 for overall menu issues.
Modified:
trunk/reactos/win32ss/user/ntuser/menu.c
Modified: trunk/reactos/win32ss/user/ntuser/menu.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/menu.c…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/menu.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/menu.c [iso-8859-1] Sat Jan 31 21:44:26 2015
@@ -252,6 +252,11 @@
}
}
}
+ if (UserObjectInDestroy(Menu->head.h))
+ {
+ ERR("Menu already dead!\n");
+ return FALSE;
+ }
ret = UserDeleteObject(Menu->head.h, TYPE_MENU);
if (!ret)
{ // Make sure it is really dead or just marked for deletion.
Author: hbelusca
Date: Sat Jan 31 18:54:52 2015
New Revision: 66128
URL: http://svn.reactos.org/svn/reactos?rev=66128&view=rev
Log:
[CDMAKE]: Fix Philip's firstname; clarify code.
Modified:
trunk/reactos/tools/cdmake/cdmake.c
trunk/reactos/tools/cdmake/llmsort.c
Modified: trunk/reactos/tools/cdmake/cdmake.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/cdmake/cdmake.c?rev=…
==============================================================================
--- trunk/reactos/tools/cdmake/cdmake.c [iso-8859-1] (original)
+++ trunk/reactos/tools/cdmake/cdmake.c [iso-8859-1] Sat Jan 31 18:54:52 2015
@@ -34,7 +34,7 @@
* magnus(a)greatlord.com
*/
-/* According to his website, this file was released into the public domain by Phillip J. Erdelsky */
+/* According to his website, this file was released into the public domain by Philip J. Erdelsky */
#include <stdio.h>
#include <fcntl.h>
@@ -1838,10 +1838,14 @@
{
char *trimmedline, *targetname, *srcname, *eq;
char lineread[1024];
- FILE *f = fopen(source+1, "r");
+ FILE *f;
+
+ source++;
+
+ f = fopen(source, "r");
if (!f)
{
- error_exit("Can't open cd description %s\n", source+1);
+ error_exit("Can't open cd description %s\n", source);
}
while (fgets(lineread, sizeof(lineread), f))
{
Modified: trunk/reactos/tools/cdmake/llmsort.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/cdmake/llmsort.c?rev…
==============================================================================
--- trunk/reactos/tools/cdmake/llmsort.c [iso-8859-1] (original)
+++ trunk/reactos/tools/cdmake/llmsort.c [iso-8859-1] Sat Jan 31 18:54:52 2015
@@ -5,8 +5,7 @@
* http://alumnus.caltech.edu/~pje/
*/
-/* According to his website, this file was released into the public domain by Phillip J. Erdelsky */
-
+/* According to his website, this file was released into the public domain by Philip J. Erdelsky */
#include <stdio.h>