Author: akhaldi
Date: Tue Dec 11 13:42:40 2012
New Revision: 57880
URL: http://svn.reactos.org/svn/reactos?rev=57880&view=rev
Log:
[LOCALUI_WINETEST]: Sync with Wine 1.5.19.
Modified:
trunk/rostests/winetests/localui/localui.c
Modified: trunk/rostests/winetests/localui/localui.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/localui/localui…
==============================================================================
--- trunk/rostests/winetests/localui/localui.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/localui/localui.c [iso-8859-1] Tue Dec 11 13:42:40 2012
@@ -71,9 +71,14 @@
if (!pi_buffer) {
res = EnumPortsW(NULL, 2, NULL, 0, &pi_needed, &pi_numports);
+ if (!res && (GetLastError() == RPC_S_SERVER_UNAVAILABLE)) {
+ win_skip("The service 'Spooler' is required for many tests\n");
+ return NULL;
+ }
+ ok(!res, "EnumPorts succeeded: got %d\n", res);
pi_buffer = HeapAlloc(GetProcessHeap(), 0, pi_needed);
- SetLastError(0xdeadbeef);
res = EnumPortsW(NULL, 2, pi_buffer, pi_needed, &pi_needed, &pi_numports);
+ ok(res == 1, "EnumPorts failed: got %d\n", res);
}
if (pi_buffer) {
pi = (PORT_INFO_2W *) pi_buffer;
@@ -160,12 +165,12 @@
SetLastError(0xdeadbeef);
new_portname = NULL;
/*
- * - On MSDN, you can read, that no dialogs should be displayed, when hWnd
+ * - On MSDN, you can read that no dialog should be displayed when hWnd
* is NULL, but native localui does not care
- * - when the new port already exist,
+ * - When the new port already exists,
* TRUE is returned, but new_portname is NULL
- * - when the new port starts with "COM" or "LPT",
- * FALSE is returned with ERROR_NOT_SUPPORTED in windows
+ * - When the new port starts with "COM" or "LPT",
+ * FALSE is returned with ERROR_NOT_SUPPORTED on windows
*/
res = pAddPortUI(NULL, NULL, localportW, &new_portname);
ok( res ||
@@ -292,7 +297,13 @@
}
}
- /* find installed Ports */
+ /* find installed ports */
+
+ /* "FILE:" */
+ file_present = find_portinfo2(portname_fileW);
+
+ if (!pi_numports) /* Nothing to test without a port */
+ return;
id = 0;
/* "LPT1:" - "LPT9:" */
@@ -316,9 +327,6 @@
if (!pi2 && (com_absent == NULL)) com_absent = strdupW(bufferW);
}
- /* "FILE:" */
- file_present = find_portinfo2(portname_fileW);
-
test_AddPortUI();
test_ConfigurePortUI();
Author: akhaldi
Date: Tue Dec 11 11:00:56 2012
New Revision: 57874
URL: http://svn.reactos.org/svn/reactos?rev=57874&view=rev
Log:
[XMLLITE]
* Forgot to svn add this.
Added:
trunk/reactos/dll/win32/xmllite/xmllite_private.h (with props)
Added: trunk/reactos/dll/win32/xmllite/xmllite_private.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/xmllite/xmllite_…
==============================================================================
--- trunk/reactos/dll/win32/xmllite/xmllite_private.h (added)
+++ trunk/reactos/dll/win32/xmllite/xmllite_private.h [iso-8859-1] Tue Dec 11 11:00:56 2012
@@ -1,0 +1,40 @@
+/*
+ * XMLLite private things
+ *
+ * Copyright 2012 Nikolay Sivov for CodeWeavers
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#ifndef __XMLLITE_PRIVATE__
+#define __XMLLITE_PRIVATE__
+
+/* memory allocation functions */
+static inline void *heap_alloc(size_t len)
+{
+ return HeapAlloc(GetProcessHeap(), 0, len);
+}
+
+static inline void *heap_realloc(void *mem, size_t len)
+{
+ return HeapReAlloc(GetProcessHeap(), 0, mem, len);
+}
+
+static inline BOOL heap_free(void *mem)
+{
+ return HeapFree(GetProcessHeap(), 0, mem);
+}
+
+#endif /* __XMLLITE_PRIVATE__ */
Propchange: trunk/reactos/dll/win32/xmllite/xmllite_private.h
------------------------------------------------------------------------------
svn:eol-style = native