Module: wine
Branch: master
Commit: 6d4d8f2ea0a53dd3d9259bde95a73422963a2dee
URL: https://source.winehq.org/git/wine.git/?a=commit;h=6d4d8f2ea0a53dd3d9259bde…
Author: Andre Heider <a.heider(a)gmail.com>
Date: Sun Nov 18 18:26:21 2018 +0100
Revert "include: Use the ARRAY_SIZE() macro in debug.h.".
This reverts commit af3992374e530a037e650b45194f933c5406038f.
wine/debug.h is a public header, and ARRAY_SIZE() is not defined for
external projects.
Signed-off-by: Andre Heider <a.heider(a)gmail.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
include/wine/debug.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/wine/debug.h b/include/wine/debug.h
index 066873a..fb0d6bb 100644
--- a/include/wine/debug.h
+++ b/include/wine/debug.h
@@ -254,7 +254,7 @@ static inline const char *wine_dbgstr_vt( VARTYPE vt )
if (vt & ~VT_TYPEMASK)
return wine_dbg_sprintf( "%s%s", wine_dbgstr_vt(vt&VT_TYPEMASK), variant_flags[vt>>12] );
- if (vt < ARRAY_SIZE(variant_types))
+ if (vt < sizeof(variant_types)/sizeof(*variant_types))
return variant_types[vt];
if (vt == VT_BSTR_BLOB)
Module: wine
Branch: master
Commit: fbde01335fef80d36975adbc9e2de9f382d57874
URL: https://source.winehq.org/git/wine.git/?a=commit;h=fbde01335fef80d36975adbc…
Author: Zebediah Figura <z.figura12(a)gmail.com>
Date: Sat Nov 17 20:06:16 2018 -0600
ntdll: Only wait on the completion port if no entries were returned.
Signed-off-by: Zebediah Figura <z.figura12(a)gmail.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/ntdll/sync.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/ntdll/sync.c b/dlls/ntdll/sync.c
index a00a159..3037e58 100644
--- a/dlls/ntdll/sync.c
+++ b/dlls/ntdll/sync.c
@@ -1371,9 +1371,10 @@ NTSTATUS WINAPI NtRemoveIoCompletionEx( HANDLE port, FILE_IO_COMPLETION_INFORMAT
if (i++ >= count) break;
}
- if (i && ret == STATUS_PENDING)
+ if (i || ret != STATUS_PENDING)
{
- ret = STATUS_SUCCESS;
+ if (ret == STATUS_PENDING)
+ ret = STATUS_SUCCESS;
break;
}
Module: wine
Branch: master
Commit: 247ae9838ff4ef575d329c8f8f47db01f341d03e
URL: https://source.winehq.org/git/wine.git/?a=commit;h=247ae9838ff4ef575d329c8f…
Author: Zebediah Figura <z.figura12(a)gmail.com>
Date: Sun Nov 18 14:35:51 2018 -0600
stdole2: Avoid defining Automation typedefs as part of the public library.
This fixes a regression introduced by 70e5d5fd2e8501f36e4f3b2bccbdc55e25d31ee4.
If the VARIANT struct is defined inside the library block, widl generates
typeinfo for it at index 0. This confuses typelibs that import stdole2.tlb.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45949
Signed-off-by: Zebediah Figura <z.figura12(a)gmail.com>
Signed-off-by: Huw Davies <huw(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
include/stdole2.idl | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/include/stdole2.idl b/include/stdole2.idl
index d372384..b659070 100644
--- a/include/stdole2.idl
+++ b/include/stdole2.idl
@@ -25,6 +25,17 @@
#include <olectl.h>
+/* These typedefs need to have the same size as their real counterparts. */
+typedef short VARIANT_BOOL;
+typedef void *BSTR;
+typedef double CURRENCY;
+typedef unsigned long HRESULT;
+typedef struct {
+ short word1, word2, word3, word4;
+ void *ptr1, *ptr2;
+} VARIANT;
+typedef unsigned long SCODE;
+
[
uuid(00020430-0000-0000-C000-000000000046),
version(2.0),
@@ -32,17 +43,6 @@
]
library stdole
{
- /* These typedefs need to have the same size as their real counterparts. */
- typedef short VARIANT_BOOL;
- typedef void *BSTR;
- typedef double CURRENCY;
- typedef unsigned long HRESULT;
- typedef struct {
- short word1, word2, word3, word4;
- void *ptr1, *ptr2;
- } VARIANT;
- typedef unsigned long SCODE;
-
typedef struct GUID {
unsigned long Data1;
unsigned short Data2;