Author: tkreuzer
Date: Sat Feb 7 21:40:38 2009
New Revision: 39470
URL: http://svn.reactos.org/svn/reactos?rev=39470&view=rev
Log:
#if out some "strange" __ROS_LONG64__ definition for (U)INT_PTR, as it doesn't make sense and breaks other code. The whole __ROS_LONG64__ hack should be improved by ... being removed.
Modified:
trunk/reactos/include/psdk/basetsd.h
Modified: trunk/reactos/include/psdk/basetsd.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/basetsd.h?rev…
==============================================================================
--- trunk/reactos/include/psdk/basetsd.h [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/basetsd.h [iso-8859-1] Sat Feb 7 21:40:38 2009
@@ -99,10 +99,10 @@
{ return( (void*)(ULONG_PTR)ul ); }
#endif /* !__midl */
#else /* !_WIN64 */
-#if !defined(__ROS_LONG64__)
+#if 1// !defined(__ROS_LONG64__)
typedef int INT_PTR, *PINT_PTR;
typedef unsigned int UINT_PTR, *PUINT_PTR;
-#else
+#else // WTF??? HACK of break
typedef long INT_PTR, *PINT_PTR;
typedef unsigned long UINT_PTR, *PUINT_PTR;
#endif
Author: tkreuzer
Date: Sat Feb 7 21:27:01 2009
New Revision: 39469
URL: http://svn.reactos.org/svn/reactos?rev=39469&view=rev
Log:
According to msdn CryptReleaseContext returns 0 on error.
but INVALID_HANDLE_VALUE is -1, go back to original code
Modified:
branches/ros-amd64-bringup/reactos/dll/win32/advapi32/service/sctrl.c
Modified: branches/ros-amd64-bringup/reactos/dll/win32/advapi32/service/sctrl.c
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/dll/w…
==============================================================================
--- branches/ros-amd64-bringup/reactos/dll/win32/advapi32/service/sctrl.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/dll/win32/advapi32/service/sctrl.c [iso-8859-1] Sat Feb 7 21:27:01 2009
@@ -454,7 +454,7 @@
Service = ScLookupServiceByServiceName((LPWSTR)lpServiceName);
if (Service == NULL)
{
- return INVALID_HANDLE_VALUE;
+ return (SERVICE_STATUS_HANDLE)NULL;
}
Service->HandlerFunction = lpHandlerProc;
Author: mjmartin
Date: Sat Feb 7 16:48:51 2009
New Revision: 39466
URL: http://svn.reactos.org/svn/reactos?rev=39466&view=rev
Log:
- Default ExitStatus for a process is STATUS_PENDING aka STILL_ACTIVE. Fixes bug #3135.
Modified:
trunk/reactos/ntoskrnl/ps/process.c
Modified: trunk/reactos/ntoskrnl/ps/process.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ps/process.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/ps/process.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ps/process.c [iso-8859-1] Sat Feb 7 16:48:51 2009
@@ -554,7 +554,7 @@
Process->SectionObject = SectionObject;
/* Set default exit code */
- Process->ExitStatus = STATUS_TIMEOUT;
+ Process->ExitStatus = STATUS_PENDING;
/* Check if this is the initial process being built */
if (Parent)