Author: tkreuzer
Date: Mon Nov 18 15:21:53 2013
New Revision: 61039
URL: http://svn.reactos.org/svn/reactos?rev=61039&view=rev
Log:
[NTOSKRNL]
Implement RtlpCloseHandleCallback, closing the handle table, and use it as callback for ExSweepHandleTable in RtlpDestroyAtomHandleTable. Without a callback ExSweepHandleTable simply crashes, so obviously we never clean up any atom tables, possibly because the window station is never closed.
Modified:
trunk/reactos/ntoskrnl/rtl/libsupp.c
Modified: trunk/reactos/ntoskrnl/rtl/libsupp.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/rtl/libsupp.c?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/rtl/libsupp.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/rtl/libsupp.c [iso-8859-1] Mon Nov 18 15:21:53 2013
@@ -535,14 +535,25 @@
return (AtomTable->ExHandleTable != NULL);
}
+BOOLEAN
+NTAPI
+RtlpCloseHandleCallback(
+ IN PHANDLE_TABLE_ENTRY HandleTableEntry,
+ IN HANDLE Handle,
+ IN PVOID HandleTable)
+{
+ /* Destroy and unlock the handle entry */
+ return ExDestroyHandle(HandleTable, Handle, HandleTableEntry);
+}
+
VOID
RtlpDestroyAtomHandleTable(PRTL_ATOM_TABLE AtomTable)
{
if (AtomTable->ExHandleTable)
{
ExSweepHandleTable(AtomTable->ExHandleTable,
- NULL,
- NULL);
+ RtlpCloseHandleCallback,
+ AtomTable->ExHandleTable);
ExDestroyHandleTable(AtomTable->ExHandleTable, NULL);
AtomTable->ExHandleTable = NULL;
}
Author: tfaber
Date: Mon Nov 18 00:22:53 2013
New Revision: 61031
URL: http://svn.reactos.org/svn/reactos?rev=61031&view=rev
Log:
[WINE]
- We have <unistd.h> and <sys/time.h>, that doesn't depend on _MSC_VER.
Modified:
trunk/reactos/include/reactos/wine/config.h
Modified: trunk/reactos/include/reactos/wine/config.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/wine/confi…
==============================================================================
--- trunk/reactos/include/reactos/wine/config.h [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/wine/config.h [iso-8859-1] Mon Nov 18 00:22:53 2013
@@ -1003,9 +1003,7 @@
/* #undef HAVE_SYS_TIMES_H */
/* Define to 1 if you have the <sys/time.h> header file. */
-#ifndef _MSC_VER
- #define HAVE_SYS_TIME_H 1
-#endif
+#define HAVE_SYS_TIME_H 1
/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
@@ -1053,9 +1051,7 @@
/* #undef HAVE_UCONTEXT_H */
/* Define to 1 if you have the <unistd.h> header file. */
-#ifndef _MSC_VER
#define HAVE_UNISTD_H 1
-#endif
/* Define to 1 if you have the `usleep' function. */
/* #undef HAVE_USLEEP */