Module: wine
Branch: master
Commit: 76d266cbb0d4e2b090152151ba2550f141390442
URL: http://source.winehq.org/git/wine.git/?a=commit;h=76d266cbb0d4e2b090152151b…
Author: Francois Gouget <fgouget(a)free.fr>
Date: Tue Nov 13 20:51:05 2007 +0100
rpcrt4: Add an rpcasync.h header stub and fix the RpcErrorStartEnumeration() prototype.
---
dlls/rpcrt4/rpcrt4_main.c | 2 +-
include/Makefile.in | 1 +
include/rpc.h | 3 +++
include/rpcasync.h | 40 ++++++++++++++++++++++++++++++++++++++++
4 files changed, 45 insertions(+), 1 deletions(-)
diff --git a/dlls/rpcrt4/rpcrt4_main.c b/dlls/rpcrt4/rpcrt4_main.c
index 7cd9b03..75d7656 100644
--- a/dlls/rpcrt4/rpcrt4_main.c
+++ b/dlls/rpcrt4/rpcrt4_main.c
@@ -871,7 +871,7 @@ LONG WINAPI I_RpcMapWin32Status(RPC_STATUS status)
/******************************************************************************
* RpcErrorStartEnumeration (rpcrt4.@)
*/
-RPC_STATUS RPC_ENTRY RpcErrorStartEnumeration(void** EnumHandle)
+RPC_STATUS RPC_ENTRY RpcErrorStartEnumeration(RPC_ERROR_ENUM_HANDLE* EnumHandle)
{
FIXME("(%p): stub\n", EnumHandle);
return RPC_S_ENTRY_NOT_FOUND;
diff --git a/include/Makefile.in b/include/Makefile.in
index 2104454..4300329 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -334,6 +334,7 @@ SRCDIR_INCLUDES = \
richedit.h \
rmxfguid.h \
rpc.h \
+ rpcasync.h \
rpcdce.h \
rpcdcep.h \
rpcndr.h \
diff --git a/include/rpc.h b/include/rpc.h
index 60bf4fe..c157c6d 100644
--- a/include/rpc.h
+++ b/include/rpc.h
@@ -60,6 +60,9 @@ typedef void* I_RPC_HANDLE;
#include <rpcnterr.h>
#include <excpt.h>
#include <winerror.h>
+#ifndef RPC_NO_WINDOWS_H
+#include <rpcasync.h>
+#endif
/* ignore exception handling for now */
#define RpcTryExcept if (1) {
diff --git a/include/rpcasync.h b/include/rpcasync.h
new file mode 100644
index 0000000..d90bbe0
--- /dev/null
+++ b/include/rpcasync.h
@@ -0,0 +1,40 @@
+/*
+ * Copyright (C) 2007 Francois Gouget
+ *
+ * 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 __WINE_RPCASYNC_H
+#define __WINE_RPCASYNC_H
+
+
+typedef struct tagRPC_ERROR_ENUM_HANDLE
+{
+ ULONG Signature;
+ void* CurrentPos;
+ void* Head;
+} RPC_ERROR_ENUM_HANDLE;
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+RPCRTAPI RPC_STATUS RPC_ENTRY RpcErrorStartEnumeration(RPC_ERROR_ENUM_HANDLE*);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
Module: appdb
Branch: master
Commit: 3ad7c4589079c7222fc6a0aabb386ae55bd31036
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=3ad7c4589079c7222fc6a0aa…
Author: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com>
Date: Mon Dec 17 19:29:34 2007 +0100
objectManager: Prevent possible problems when moving child objects
---
include/objectManager.php | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/include/objectManager.php b/include/objectManager.php
index 066e561..55d1c75 100644
--- a/include/objectManager.php
+++ b/include/objectManager.php
@@ -30,6 +30,13 @@ class ObjectManager
// queued entries
private $aCommonResponses;
+ /* Remove the cached object of the class we are working with, useful in cases where we
+ modify the object in such a way that it needs to be reloaded */
+ private function flushCachedObject()
+ {
+ $this->oObject = null;
+ }
+
/* Get an instance of the object of the class we are working with */
private function getObject()
{
@@ -836,6 +843,9 @@ class ObjectManager
$iAffected = $oObject->objectMoveChildren($iNewId);
+ /* Some classes record the id of their child objects, so we shouldn't keep an old instance around */
+ $this->flushCachedObject();
+
if($iAffected)
{
$sPlural = ($iAffected == 1) ? "": "s";