RetVal is in bytes, so check against MAX_PATH in bytes
Modified: trunk/reactos/lib/kernel32/process/create.c
_____
Modified: trunk/reactos/lib/kernel32/process/create.c
--- trunk/reactos/lib/kernel32/process/create.c 2005-09-09 09:50:58 UTC
(rev 17759)
+++ trunk/reactos/lib/kernel32/process/create.c 2005-09-09 10:22:40 UTC
(rev 17760)
@@ -973,7 +973,7 @@
}
/* Now check if we have a file, and if the path size is OK */
- if (!RetVal || RetVal >= (MAX_PATH / sizeof(WCHAR)))
+ if (!RetVal || RetVal >= (MAX_PATH * sizeof(WCHAR)))
{
ULONG PathType;
HANDLE hFile;
Remove WS_VISIBLE bit from correct member
Modified: trunk/reactos/subsys/win32k/ntuser/window.c
_____
Modified: trunk/reactos/subsys/win32k/ntuser/window.c
--- trunk/reactos/subsys/win32k/ntuser/window.c 2005-09-09 00:38:39 UTC
(rev 17757)
+++ trunk/reactos/subsys/win32k/ntuser/window.c 2005-09-09 09:48:33 UTC
(rev 17758)
@@ -344,7 +344,7 @@
return 0;
}
Window->Status |= WINDOWSTATUS_DESTROYING;
- Window->Flags &= ~WS_VISIBLE;
+ Window->Style &= ~WS_VISIBLE;
/* remove the window already at this point from the thread window
list so we
don't get into trouble when destroying the thread windows while
we're still
in IntDestroyWindow() */