mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-01-28 22:04:43 -08:00
Rebase against c90e46b66ded518dbfb88f1efdc366e7986defb4.
This commit is contained in:
parent
436e1adc84
commit
4a42867417
@ -1,136 +0,0 @@
|
||||
From 99d742d6850f82d5106a7402ea0fbc680e929202 Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Lackner <sebastian@fds-team.de>
|
||||
Date: Sat, 30 Jul 2016 23:53:32 +0200
|
||||
Subject: comctl32: Avoid misleading indentation warnings.
|
||||
|
||||
---
|
||||
dlls/comctl32/listview.c | 54 ++++++++++++++++++++++++++++++++----------------
|
||||
1 file changed, 36 insertions(+), 18 deletions(-)
|
||||
|
||||
diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
|
||||
index cfdb7de..0298b12 100644
|
||||
--- a/dlls/comctl32/listview.c
|
||||
+++ b/dlls/comctl32/listview.c
|
||||
@@ -588,23 +588,28 @@ static const char* debugscrollinfo(const SCROLLINFO *pScrollInfo)
|
||||
|
||||
if (pScrollInfo == NULL) return "(null)";
|
||||
len = snprintf(buf, size, "{cbSize=%u, ", pScrollInfo->cbSize);
|
||||
- if (len == -1) goto end; buf += len; size -= len;
|
||||
+ if (len == -1) goto end;
|
||||
+ buf += len; size -= len;
|
||||
if (pScrollInfo->fMask & SIF_RANGE)
|
||||
len = snprintf(buf, size, "nMin=%d, nMax=%d, ", pScrollInfo->nMin, pScrollInfo->nMax);
|
||||
else len = 0;
|
||||
- if (len == -1) goto end; buf += len; size -= len;
|
||||
+ if (len == -1) goto end;
|
||||
+ buf += len; size -= len;
|
||||
if (pScrollInfo->fMask & SIF_PAGE)
|
||||
len = snprintf(buf, size, "nPage=%u, ", pScrollInfo->nPage);
|
||||
else len = 0;
|
||||
- if (len == -1) goto end; buf += len; size -= len;
|
||||
+ if (len == -1) goto end;
|
||||
+ buf += len; size -= len;
|
||||
if (pScrollInfo->fMask & SIF_POS)
|
||||
len = snprintf(buf, size, "nPos=%d, ", pScrollInfo->nPos);
|
||||
else len = 0;
|
||||
- if (len == -1) goto end; buf += len; size -= len;
|
||||
+ if (len == -1) goto end;
|
||||
+ buf += len; size -= len;
|
||||
if (pScrollInfo->fMask & SIF_TRACKPOS)
|
||||
len = snprintf(buf, size, "nTrackPos=%d, ", pScrollInfo->nTrackPos);
|
||||
else len = 0;
|
||||
- if (len == -1) goto end; buf += len;
|
||||
+ if (len == -1) goto end;
|
||||
+ buf += len;
|
||||
goto undo;
|
||||
end:
|
||||
buf = text + strlen(text);
|
||||
@@ -629,27 +634,33 @@ static const char* debuglvitem_t(const LVITEMW *lpLVItem, BOOL isW)
|
||||
|
||||
if (lpLVItem == NULL) return "(null)";
|
||||
len = snprintf(buf, size, "{iItem=%d, iSubItem=%d, ", lpLVItem->iItem, lpLVItem->iSubItem);
|
||||
- if (len == -1) goto end; buf += len; size -= len;
|
||||
+ if (len == -1) goto end;
|
||||
+ buf += len; size -= len;
|
||||
if (lpLVItem->mask & LVIF_STATE)
|
||||
len = snprintf(buf, size, "state=%x, stateMask=%x, ", lpLVItem->state, lpLVItem->stateMask);
|
||||
else len = 0;
|
||||
- if (len == -1) goto end; buf += len; size -= len;
|
||||
+ if (len == -1) goto end;
|
||||
+ buf += len; size -= len;
|
||||
if (lpLVItem->mask & LVIF_TEXT)
|
||||
len = snprintf(buf, size, "pszText=%s, cchTextMax=%d, ", debugtext_tn(lpLVItem->pszText, isW, 80), lpLVItem->cchTextMax);
|
||||
else len = 0;
|
||||
- if (len == -1) goto end; buf += len; size -= len;
|
||||
+ if (len == -1) goto end;
|
||||
+ buf += len; size -= len;
|
||||
if (lpLVItem->mask & LVIF_IMAGE)
|
||||
len = snprintf(buf, size, "iImage=%d, ", lpLVItem->iImage);
|
||||
else len = 0;
|
||||
- if (len == -1) goto end; buf += len; size -= len;
|
||||
+ if (len == -1) goto end;
|
||||
+ buf += len; size -= len;
|
||||
if (lpLVItem->mask & LVIF_PARAM)
|
||||
len = snprintf(buf, size, "lParam=%lx, ", lpLVItem->lParam);
|
||||
else len = 0;
|
||||
- if (len == -1) goto end; buf += len; size -= len;
|
||||
+ if (len == -1) goto end;
|
||||
+ buf += len; size -= len;
|
||||
if (lpLVItem->mask & LVIF_INDENT)
|
||||
len = snprintf(buf, size, "iIndent=%d, ", lpLVItem->iIndent);
|
||||
else len = 0;
|
||||
- if (len == -1) goto end; buf += len;
|
||||
+ if (len == -1) goto end;
|
||||
+ buf += len;
|
||||
goto undo;
|
||||
end:
|
||||
buf = text + strlen(text);
|
||||
@@ -665,31 +676,38 @@ static const char* debuglvcolumn_t(const LVCOLUMNW *lpColumn, BOOL isW)
|
||||
|
||||
if (lpColumn == NULL) return "(null)";
|
||||
len = snprintf(buf, size, "{");
|
||||
- if (len == -1) goto end; buf += len; size -= len;
|
||||
+ if (len == -1) goto end;
|
||||
+ buf += len; size -= len;
|
||||
if (lpColumn->mask & LVCF_SUBITEM)
|
||||
len = snprintf(buf, size, "iSubItem=%d, ", lpColumn->iSubItem);
|
||||
else len = 0;
|
||||
- if (len == -1) goto end; buf += len; size -= len;
|
||||
+ if (len == -1) goto end;
|
||||
+ buf += len; size -= len;
|
||||
if (lpColumn->mask & LVCF_FMT)
|
||||
len = snprintf(buf, size, "fmt=%x, ", lpColumn->fmt);
|
||||
else len = 0;
|
||||
- if (len == -1) goto end; buf += len; size -= len;
|
||||
+ if (len == -1) goto end;
|
||||
+ buf += len; size -= len;
|
||||
if (lpColumn->mask & LVCF_WIDTH)
|
||||
len = snprintf(buf, size, "cx=%d, ", lpColumn->cx);
|
||||
else len = 0;
|
||||
- if (len == -1) goto end; buf += len; size -= len;
|
||||
+ if (len == -1) goto end;
|
||||
+ buf += len; size -= len;
|
||||
if (lpColumn->mask & LVCF_TEXT)
|
||||
len = snprintf(buf, size, "pszText=%s, cchTextMax=%d, ", debugtext_tn(lpColumn->pszText, isW, 80), lpColumn->cchTextMax);
|
||||
else len = 0;
|
||||
- if (len == -1) goto end; buf += len; size -= len;
|
||||
+ if (len == -1) goto end;
|
||||
+ buf += len; size -= len;
|
||||
if (lpColumn->mask & LVCF_IMAGE)
|
||||
len = snprintf(buf, size, "iImage=%d, ", lpColumn->iImage);
|
||||
else len = 0;
|
||||
- if (len == -1) goto end; buf += len; size -= len;
|
||||
+ if (len == -1) goto end;
|
||||
+ buf += len; size -= len;
|
||||
if (lpColumn->mask & LVCF_ORDER)
|
||||
len = snprintf(buf, size, "iOrder=%d, ", lpColumn->iOrder);
|
||||
else len = 0;
|
||||
- if (len == -1) goto end; buf += len;
|
||||
+ if (len == -1) goto end;
|
||||
+ buf += len;
|
||||
goto undo;
|
||||
end:
|
||||
buf = text + strlen(text);
|
||||
--
|
||||
2.9.0
|
||||
|
@ -1,234 +0,0 @@
|
||||
From 3c4086e64e16a14b6164af7810c15e122f7ff537 Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Lackner <sebastian@fds-team.de>
|
||||
Date: Sat, 30 Jul 2016 23:56:41 +0200
|
||||
Subject: msvcirt/tests: Avoid misleading indentation warnings.
|
||||
|
||||
---
|
||||
dlls/msvcirt/tests/msvcirt.c | 44 ++++++++++++++++++++++++++++++++++++++++++++
|
||||
1 file changed, 44 insertions(+)
|
||||
|
||||
diff --git a/dlls/msvcirt/tests/msvcirt.c b/dlls/msvcirt/tests/msvcirt.c
|
||||
index 1b15949..8f2f8db 100644
|
||||
--- a/dlls/msvcirt/tests/msvcirt.c
|
||||
+++ b/dlls/msvcirt/tests/msvcirt.c
|
||||
@@ -3122,7 +3122,9 @@ static void test_ostream(void) {
|
||||
|
||||
/* flush */
|
||||
if (0) /* crashes on native */
|
||||
+{
|
||||
pos = call_func1(p_ostream_flush, &os1);
|
||||
+}
|
||||
os1.base_ios.sb = &fb2.base;
|
||||
call_func1(p_filebuf_ctor, &fb2);
|
||||
pos = call_func1(p_ostream_flush, &os1);
|
||||
@@ -3178,7 +3180,9 @@ if (0) /* crashes on native */
|
||||
os1.base_ios.tie = &os2;
|
||||
os2.base_ios.sb = NULL;
|
||||
if (0) /* crashes on native */
|
||||
+{
|
||||
ret = (int) call_func1(p_ostream_opfx, &os1);
|
||||
+}
|
||||
os2.base_ios.sb = &fb2.base;
|
||||
os2.base_ios.state = IOSTATE_badbit;
|
||||
ret = (int) call_func3(p_streambuf_xsputn, &fb1.base, "We've known each other", 22);
|
||||
@@ -3205,7 +3209,9 @@ if (0) /* crashes on native */
|
||||
ok(ret == 1, "expected 1 got %d\n", ret);
|
||||
os1.base_ios.sb = NULL;
|
||||
if (0) /* crashes on native */
|
||||
+{
|
||||
call_func1(p_ostream_osfx, &os1);
|
||||
+}
|
||||
os1.base_ios.sb = &fb1.base;
|
||||
os1.base_ios.flags = FLAGS_unitbuf;
|
||||
call_func1(p_ostream_osfx, &os1);
|
||||
@@ -3245,7 +3251,9 @@ if (0) /* crashes on native */
|
||||
ok(fb1.base.pptr == fb1.base.base + 1, "wrong put pointer, expected %p got %p\n", fb1.base.base + 1, fb1.base.pptr);
|
||||
os1.base_ios.sb = NULL;
|
||||
if (0) /* crashes on native */
|
||||
+{
|
||||
pos = call_func2(p_ostream_put_char, &os1, 'c');
|
||||
+}
|
||||
os1.base_ios.sb = &fb1.base;
|
||||
os1.base_ios.width = 5;
|
||||
call_func1(p_filebuf_sync, &fb1);
|
||||
@@ -3277,7 +3285,9 @@ if (0) /* crashes on native */
|
||||
ok(fb1.base.pptr == fb1.base.base + 7, "wrong put pointer, expected %p got %p\n", fb1.base.base + 7, fb1.base.pptr);
|
||||
os1.base_ios.sb = NULL;
|
||||
if (0) /* crashes on native */
|
||||
+{
|
||||
pos = call_func3(p_ostream_write_char, &os1, "been", 4);
|
||||
+}
|
||||
os1.base_ios.sb = &fb1.base;
|
||||
os1.base_ios.width = 5;
|
||||
call_func1(p_filebuf_sync, &fb1);
|
||||
@@ -3393,7 +3403,9 @@ if (0) /* crashes on native */
|
||||
ok(pos == &os1, "wrong return, expected %p got %p\n", &os1, pos);
|
||||
ok(!strncmp(fb1.base.pptr - 6, "abzzzz", 6), "expected 'abzzzz' got '%s'\n", fb1.base.pptr - 6);
|
||||
if (0) /* crashes on native */
|
||||
+{
|
||||
pos = call_func3(p_ostream_writepad, &os1, NULL, "o");
|
||||
+}
|
||||
pos = call_func3(p_ostream_writepad, &os1, "", "hello");
|
||||
ok(pos == &os1, "wrong return, expected %p got %p\n", &os1, pos);
|
||||
ok(!strncmp(fb1.base.pptr - 6, "helloz", 6), "expected 'helloz' got '%s'\n", fb1.base.pptr - 6);
|
||||
@@ -3856,7 +3868,9 @@ static void test_ostream_withassign(void)
|
||||
osa1.unknown = 0xabababab;
|
||||
osa1.base_ios.sb = (streambuf*) 0xabababab;
|
||||
if (0) /* crashes on native */
|
||||
+{
|
||||
osa1.base_ios.delbuf = 0xabababab;
|
||||
+}
|
||||
posa = call_func2(p_ostream_withassign_assign_sb, &osa1, &sb);
|
||||
ok(posa == &osa1, "wrong return, expected %p got %p\n", &osa1, posa);
|
||||
ok(osa1.unknown == 0xabababab, "expected %d got %d\n", 0xabababab, osa1.unknown);
|
||||
@@ -4036,7 +4050,9 @@ static void test_istream(void)
|
||||
ok(is2.base_ios.precision == 6, "expected 6 got %d\n", is2.base_ios.precision);
|
||||
ok(is2.base_ios.width == 0, "expected 0 got %d\n", is2.base_ios.width);
|
||||
if (0) /* crashes on native */
|
||||
+{
|
||||
pis = call_func2(p_istream_assign, &is2, NULL);
|
||||
+}
|
||||
is2.extract_delim = is2.count = 0xabababab;
|
||||
is2.base_ios.sb = (streambuf*) 0xabababab;
|
||||
is2.base_ios.state = 0xabababab;
|
||||
@@ -4072,7 +4088,9 @@ if (0) /* crashes on native */
|
||||
/* eatwhite */
|
||||
is1.extract_delim = is1.count = 0;
|
||||
if (0) /* crashes on native */
|
||||
+{
|
||||
is1.base_ios.sb = NULL;
|
||||
+}
|
||||
is1.base_ios.state = IOSTATE_badbit;
|
||||
is1.base_ios.flags = 0;
|
||||
call_func1(p_istream_eatwhite, &is1);
|
||||
@@ -4140,7 +4158,9 @@ if (0) /* crashes on native */
|
||||
ok(is1.base_ios.state == (IOSTATE_badbit|IOSTATE_failbit), "expected %d got %d\n",
|
||||
IOSTATE_badbit|IOSTATE_failbit, is1.base_ios.state);
|
||||
if (0) /* crashes on native */
|
||||
+{
|
||||
is1.base_ios.sb = NULL;
|
||||
+}
|
||||
is1.base_ios.state = IOSTATE_goodbit;
|
||||
is1.base_ios.tie = &os;
|
||||
pos = call_func3(p_ostream_sb_ctor, &os, &fb2.base, TRUE);
|
||||
@@ -4407,7 +4427,9 @@ if (0) /* crashes on native */
|
||||
ok(fb1.base.gptr == NULL, "wrong get pointer, expected %p got %p\n", NULL, fb1.base.gptr);
|
||||
ok(buffer[0] == 0, "expected 0 got %d\n", buffer[0]);
|
||||
if (0) /* crashes on native */
|
||||
+{
|
||||
pis = call_func4(p_istream_get_str_delim, &is1, (char*) 0x1, 5, 0);
|
||||
+}
|
||||
|
||||
/* get_str */
|
||||
is1.extract_delim = is1.count = 0xabababab;
|
||||
@@ -4545,7 +4567,9 @@ if (0) /* crashes on native */
|
||||
ok(fb1.base.gptr == fb1.base.base + 3, "wrong get pointer, expected %p got %p\n", fb1.base.base + 3, fb1.base.gptr);
|
||||
ok(c == -50, "expected %d got %d\n", -50, c);
|
||||
if (0) /* crashes on native */
|
||||
+{
|
||||
pis = call_func2(p_istream_get_char, &is1, NULL);
|
||||
+}
|
||||
fb1.base.gptr = fb1.base.base + 30;
|
||||
pis = call_func2(p_istream_get_char, &is1, &c);
|
||||
ok(pis == &is1, "wrong return, expected %p got %p\n", &is1, pis);
|
||||
@@ -4657,7 +4681,9 @@ if (0) /* crashes on native */
|
||||
ok(fb2.base.epptr == NULL, "wrong put end, expected %p got %p\n", NULL, fb2.base.epptr);
|
||||
is1.base_ios.state = IOSTATE_goodbit;
|
||||
if (0) /* crashes on native */
|
||||
+{
|
||||
pis = call_func3(p_istream_get_sb, &is1, NULL, '?');
|
||||
+}
|
||||
*fb1.base.gptr = -50;
|
||||
pis = call_func3(p_istream_get_sb, &is1, &fb2.base, -50);
|
||||
ok(pis == &is1, "wrong return, expected %p got %p\n", &is1, pis);
|
||||
@@ -4851,7 +4877,9 @@ if (0) /* crashes on native */
|
||||
ok(is1.base_ios.state == IOSTATE_goodbit, "expected %d got %d\n", IOSTATE_goodbit, is1.base_ios.state);
|
||||
ok(fb1.base.gptr == fb1.base.base, "wrong get pointer, expected %p got %p\n", fb1.base.base, fb1.base.gptr);
|
||||
if (0) /* crashes on native */
|
||||
+{
|
||||
is1.base_ios.sb = NULL;
|
||||
+}
|
||||
fb1.base.gptr = fb1.base.base + 14;
|
||||
ret = (int) call_func1(p_istream_peek, &is1);
|
||||
ok(ret == 206, "expected 206 got %d\n", ret);
|
||||
@@ -4896,7 +4924,9 @@ if (0) /* crashes on native */
|
||||
ok(fb1.base.gptr == fb1.base.base + 15, "wrong get pointer, expected %p got %p\n", fb1.base.base + 15, fb1.base.gptr);
|
||||
is1.base_ios.state = IOSTATE_goodbit;
|
||||
if (0) /* crashes on native */
|
||||
+{
|
||||
is1.base_ios.sb = NULL;
|
||||
+}
|
||||
pis = call_func2(p_istream_putback, &is1, -40);
|
||||
ok(pis == &is1, "wrong return, expected %p got %p\n", &is1, pis);
|
||||
ok(is1.base_ios.state == IOSTATE_goodbit, "expected %d got %d\n", IOSTATE_goodbit, is1.base_ios.state);
|
||||
@@ -4954,13 +4984,17 @@ if (0) /* crashes on native */
|
||||
ok(!strncmp(buffer, fb1.base.base, 30), "unexpected buffer content, got '%s'\n", buffer);
|
||||
ok(buffer[30] == 'A', "expected 'A' got %d\n", buffer[30]);
|
||||
if (0) /* crashes on native */
|
||||
+{
|
||||
is1.base_ios.sb = NULL;
|
||||
+}
|
||||
is1.base_ios.state = IOSTATE_goodbit;
|
||||
fb1.base.eback = fb1.base.gptr = fb1.base.base;
|
||||
fb1.base.egptr = fb1.base.base + 30;
|
||||
memset(buffer, 'A', sizeof(buffer));
|
||||
if (0) /* crashes on native */
|
||||
+{
|
||||
pis = call_func3(p_istream_read, &is1, buffer, -1);
|
||||
+}
|
||||
pis = call_func3(p_istream_read, &is1, buffer, 0);
|
||||
ok(pis == &is1, "wrong return, expected %p got %p\n", &is1, pis);
|
||||
ok(is1.count == 0, "expected 0 got %d\n", is1.count);
|
||||
@@ -4976,7 +5010,9 @@ if (0) /* crashes on native */
|
||||
ok(fb1.base.gptr == NULL, "wrong get pointer, expected %p got %p\n", NULL, fb1.base.gptr);
|
||||
ok(_tell(fb1.fd) == 0, "expected 0 got %d\n", _tell(fb1.fd));
|
||||
if (0) /* crashes on native */
|
||||
+{
|
||||
is1.base_ios.sb = NULL;
|
||||
+}
|
||||
pis = call_func2(p_istream_seekg, &is1, -5);
|
||||
ok(pis == &is1, "wrong return, expected %p got %p\n", &is1, pis);
|
||||
ok(is1.base_ios.state == IOSTATE_failbit, "expected %d got %d\n", IOSTATE_failbit, is1.base_ios.state);
|
||||
@@ -5009,7 +5045,9 @@ if (0) /* crashes on native */
|
||||
ok(is1.base_ios.state == IOSTATE_failbit, "expected %d got %d\n", IOSTATE_failbit, is1.base_ios.state);
|
||||
ok(fb1.base.gptr == fb1.base.base, "wrong get pointer, expected %p got %p\n", fb1.base.base, fb1.base.gptr);
|
||||
if (0) /* crashes on native */
|
||||
+{
|
||||
is1.base_ios.sb = NULL;
|
||||
+}
|
||||
fb1.base.gptr = fb1.base.egptr;
|
||||
pis = call_func3(p_istream_seekg_offset, &is1, 0, SEEKDIR_end);
|
||||
ok(pis == &is1, "wrong return, expected %p got %p\n", &is1, pis);
|
||||
@@ -5030,7 +5068,9 @@ if (0) /* crashes on native */
|
||||
ok(ret == 0, "expected 0 got %d\n", ret);
|
||||
ok(is1.base_ios.state == IOSTATE_goodbit, "expected %d got %d\n", IOSTATE_goodbit, is1.base_ios.state);
|
||||
if (0) /* crashes on native */
|
||||
+{
|
||||
is1.base_ios.sb = NULL;
|
||||
+}
|
||||
fb1.base.eback = fb1.base.gptr = fb1.base.base;
|
||||
fb1.base.egptr = fb1.base.base + 30;
|
||||
ret = (int) call_func1(p_istream_sync, &is1);
|
||||
@@ -5063,7 +5103,9 @@ if (0) /* crashes on native */
|
||||
ok(ret == 24, "expected 24 got %d\n", ret);
|
||||
ok(is1.base_ios.state == IOSTATE_goodbit, "expected %d got %d\n", IOSTATE_goodbit, is1.base_ios.state);
|
||||
if (0) /* crashes on native */
|
||||
+{
|
||||
is1.base_ios.sb = NULL;
|
||||
+}
|
||||
fb1.base.eback = fb1.base.gptr = fb1.base.base;
|
||||
fb1.base.egptr = fb1.base.base + 30;
|
||||
ret = (int) call_func1(p_istream_tellg, &is1);
|
||||
@@ -6015,7 +6057,9 @@ static void test_iostream(void)
|
||||
memset(&ios2.base_ios, 0xcd, sizeof(ios));
|
||||
ios2.base_ios.delbuf = 0;
|
||||
if (0) /* crashes on native */
|
||||
+{
|
||||
pios = call_func2(p_iostream_assign, &ios2, NULL);
|
||||
+}
|
||||
pios = call_func2(p_iostream_assign, &ios2, &ios1);
|
||||
ok(pios == &ios2, "wrong return, expected %p got %p\n", &ios2, pios);
|
||||
ok(ios2.base1.extract_delim == 0xcdcdcdcd, "expected %d got %d\n", 0xcdcdcdcd, ios2.base1.extract_delim);
|
||||
--
|
||||
2.9.0
|
||||
|
@ -1,26 +0,0 @@
|
||||
From d93228af9587d69553082d48523a49e74a536704 Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Lackner <sebastian@fds-team.de>
|
||||
Date: Sat, 30 Jul 2016 23:57:11 +0200
|
||||
Subject: oleaut32/tests: Avoid misleading indentation warnings.
|
||||
|
||||
---
|
||||
dlls/oleaut32/tests/safearray.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/dlls/oleaut32/tests/safearray.c b/dlls/oleaut32/tests/safearray.c
|
||||
index f57b886..787891c 100644
|
||||
--- a/dlls/oleaut32/tests/safearray.c
|
||||
+++ b/dlls/oleaut32/tests/safearray.c
|
||||
@@ -706,7 +706,9 @@ static void test_safearray(void)
|
||||
}
|
||||
|
||||
if (!pSafeArrayAllocDescriptorEx)
|
||||
+ {
|
||||
return;
|
||||
+ }
|
||||
|
||||
for (i=0;i<sizeof(vttypes)/sizeof(vttypes[0]);i++) {
|
||||
a = NULL;
|
||||
--
|
||||
2.9.0
|
||||
|
@ -52,7 +52,7 @@ usage()
|
||||
# Get the upstream commit sha
|
||||
upstream_commit()
|
||||
{
|
||||
echo "d6d0d96402b9c187877f11da173f8fbbf62ba072"
|
||||
echo "c90e46b66ded518dbfb88f1efdc366e7986defb4"
|
||||
}
|
||||
|
||||
# Show version information
|
||||
@ -2330,17 +2330,13 @@ fi
|
||||
# Patchset Compiler_Warnings
|
||||
# |
|
||||
# | Modified files:
|
||||
# | * dlls/amstream/mediastreamfilter.c, dlls/comctl32/listview.c, dlls/d2d1/brush.c, dlls/d2d1/geometry.c, dlls/d3d11/view.c,
|
||||
# | dlls/d3d8/texture.c, dlls/d3d9/tests/visual.c, dlls/d3d9/texture.c, dlls/ddraw/viewport.c, dlls/dsound/primary.c,
|
||||
# | dlls/dwrite/layout.c, dlls/msvcirt/tests/msvcirt.c, dlls/msxml3/schema.c, dlls/netapi32/netapi32.c,
|
||||
# | dlls/oleaut32/oleaut.c, dlls/oleaut32/tests/safearray.c, dlls/rpcrt4/cstub.c, dlls/vbscript/vbdisp.c,
|
||||
# | * dlls/amstream/mediastreamfilter.c, dlls/d2d1/brush.c, dlls/d2d1/geometry.c, dlls/d3d11/view.c, dlls/d3d8/texture.c,
|
||||
# | dlls/d3d9/tests/visual.c, dlls/d3d9/texture.c, dlls/ddraw/viewport.c, dlls/dsound/primary.c, dlls/dwrite/layout.c,
|
||||
# | dlls/msxml3/schema.c, dlls/netapi32/netapi32.c, dlls/oleaut32/oleaut.c, dlls/rpcrt4/cstub.c, dlls/vbscript/vbdisp.c,
|
||||
# | dlls/winealsa.drv/mmdevdrv.c, dlls/wined3d/glsl_shader.c, include/d3dtypes.h, include/wine/list.h,
|
||||
# | include/wine/rbtree.h, include/winnt.h, server/request.c, server/sock.c, tools/makedep.c
|
||||
# |
|
||||
if test "$enable_Compiler_Warnings" -eq 1; then
|
||||
patch_apply Compiler_Warnings/0001-comctl32-Avoid-misleading-indentation-warnings.patch
|
||||
patch_apply Compiler_Warnings/0005-msvcirt-tests-Avoid-misleading-indentation-warnings.patch
|
||||
patch_apply Compiler_Warnings/0006-oleaut32-tests-Avoid-misleading-indentation-warnings.patch
|
||||
patch_apply Compiler_Warnings/0015-include-Avoid-shift-overflow-warning.patch
|
||||
patch_apply Compiler_Warnings/0017-server-Workaround-duplicate-condition-warning-of-GCC.patch
|
||||
patch_apply Compiler_Warnings/0018-Appease-the-blessed-version-of-gcc-4.5-when-Werror-i.patch
|
||||
@ -2358,9 +2354,6 @@ if test "$enable_Compiler_Warnings" -eq 1; then
|
||||
patch_apply Compiler_Warnings/0030-vbscript-Avoid-implicit-cast-of-interface-pointer.patch
|
||||
patch_apply Compiler_Warnings/0031-include-Check-element-type-in-CONTAINING_RECORD-and-.patch
|
||||
(
|
||||
echo '+ { "Sebastian Lackner", "comctl32: Avoid misleading indentation warnings.", 1 },';
|
||||
echo '+ { "Sebastian Lackner", "msvcirt/tests: Avoid misleading indentation warnings.", 1 },';
|
||||
echo '+ { "Sebastian Lackner", "oleaut32/tests: Avoid misleading indentation warnings.", 1 },';
|
||||
echo '+ { "Sebastian Lackner", "include: Avoid shift overflow warning.", 1 },';
|
||||
echo '+ { "Sebastian Lackner", "server: Workaround duplicate condition warning of GCC 6.", 1 },';
|
||||
echo '+ { "Erich E. Hoover", "Appease the blessed version of gcc (4.5) when -Werror is enabled.", 1 },';
|
||||
|
@ -8109,7 +8109,7 @@ diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
|
||||
UINT rt_count, const struct wined3d_fb_state *fb) DECLSPEC_HIDDEN;
|
||||
BOOL context_apply_draw_state(struct wined3d_context *context,
|
||||
const struct wined3d_device *device, const struct wined3d_state *state) DECLSPEC_HIDDEN;
|
||||
@@ -2353,7 +2411,11 @@ struct wined3d_stream_state
|
||||
@@ -2356,7 +2414,11 @@ struct wined3d_stream_state
|
||||
struct wined3d_state
|
||||
{
|
||||
DWORD flags;
|
||||
@ -8121,7 +8121,7 @@ diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
|
||||
|
||||
struct wined3d_vertex_declaration *vertex_declaration;
|
||||
struct wined3d_stream_output stream_output[MAX_STREAM_OUT];
|
||||
@@ -2400,6 +2462,16 @@ struct wined3d_state
|
||||
@@ -2403,6 +2465,16 @@ struct wined3d_state
|
||||
struct wined3d_rasterizer_state *rasterizer_state;
|
||||
};
|
||||
|
||||
@ -8138,7 +8138,7 @@ diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
|
||||
#define WINED3D_UNMAPPED_STAGE ~0U
|
||||
|
||||
/* Multithreaded flag. Removed from the public header to signal that
|
||||
@@ -2452,16 +2524,21 @@ struct wined3d_device
|
||||
@@ -2455,16 +2527,21 @@ struct wined3d_device
|
||||
struct wined3d_rendertarget_view *back_buffer_view;
|
||||
struct wined3d_swapchain **swapchains;
|
||||
UINT swapchain_count;
|
||||
@ -8160,7 +8160,7 @@ diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
|
||||
/* For rendering to a texture using glCopyTexImage */
|
||||
GLuint depth_blt_texture;
|
||||
|
||||
@@ -2508,9 +2585,23 @@ LRESULT device_process_message(struct wined3d_device *device, HWND window, BOOL
|
||||
@@ -2511,9 +2588,23 @@ LRESULT device_process_message(struct wined3d_device *device, HWND window, BOOL
|
||||
UINT message, WPARAM wparam, LPARAM lparam, WNDPROC proc) DECLSPEC_HIDDEN;
|
||||
void device_resource_add(struct wined3d_device *device, struct wined3d_resource *resource) DECLSPEC_HIDDEN;
|
||||
void device_resource_released(struct wined3d_device *device, struct wined3d_resource *resource) DECLSPEC_HIDDEN;
|
||||
@ -8184,7 +8184,7 @@ diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
|
||||
|
||||
static inline BOOL isStateDirty(const struct wined3d_context *context, DWORD state)
|
||||
{
|
||||
@@ -2555,7 +2646,11 @@ struct wined3d_resource
|
||||
@@ -2558,7 +2649,11 @@ struct wined3d_resource
|
||||
UINT depth;
|
||||
UINT size;
|
||||
DWORD priority;
|
||||
@ -8196,7 +8196,7 @@ diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
|
||||
struct list resource_list_entry;
|
||||
LONG access_count;
|
||||
|
||||
@@ -2663,6 +2758,9 @@ struct wined3d_texture
|
||||
@@ -2666,6 +2761,9 @@ struct wined3d_texture
|
||||
DWORD flags;
|
||||
GLenum target;
|
||||
DWORD update_map_binding;
|
||||
@ -8206,7 +8206,7 @@ diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
|
||||
|
||||
GLuint rb_multisample;
|
||||
GLuint rb_resolved;
|
||||
@@ -2699,7 +2797,12 @@ struct wined3d_texture
|
||||
@@ -2702,7 +2800,12 @@ struct wined3d_texture
|
||||
|
||||
unsigned int map_count;
|
||||
DWORD locations;
|
||||
@ -8219,7 +8219,7 @@ diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
|
||||
} sub_resources[1];
|
||||
};
|
||||
|
||||
@@ -2750,11 +2853,23 @@ void wined3d_texture_bind(struct wined3d_texture *texture,
|
||||
@@ -2753,11 +2856,23 @@ void wined3d_texture_bind(struct wined3d_texture *texture,
|
||||
struct wined3d_context *context, BOOL srgb) DECLSPEC_HIDDEN;
|
||||
void wined3d_texture_bind_and_dirtify(struct wined3d_texture *texture,
|
||||
struct wined3d_context *context, BOOL srgb) DECLSPEC_HIDDEN;
|
||||
@ -8243,7 +8243,7 @@ diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
|
||||
struct wined3d_texture_sub_resource *wined3d_texture_get_sub_resource(struct wined3d_texture *texture,
|
||||
unsigned int sub_resource_idx) DECLSPEC_HIDDEN;
|
||||
void wined3d_texture_invalidate_location(struct wined3d_texture *texture,
|
||||
@@ -2767,13 +2882,26 @@ void *wined3d_texture_map_bo_address(const struct wined3d_bo_address *data, size
|
||||
@@ -2770,13 +2885,26 @@ void *wined3d_texture_map_bo_address(const struct wined3d_bo_address *data, size
|
||||
const struct wined3d_gl_info *gl_info, GLenum binding, DWORD flags) DECLSPEC_HIDDEN;
|
||||
BOOL wined3d_texture_prepare_location(struct wined3d_texture *texture, unsigned int sub_resource_idx,
|
||||
struct wined3d_context *context, DWORD location) DECLSPEC_HIDDEN;
|
||||
@ -8270,7 +8270,7 @@ diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
|
||||
void wined3d_texture_upload_data(struct wined3d_texture *texture, unsigned int sub_resource_idx,
|
||||
const struct wined3d_context *context, const struct wined3d_const_bo_address *data,
|
||||
unsigned int row_pitch, unsigned int slice_pitch) DECLSPEC_HIDDEN;
|
||||
@@ -2882,7 +3010,11 @@ void surface_get_drawable_size(const struct wined3d_surface *surface, const stru
|
||||
@@ -2885,7 +3013,11 @@ void surface_get_drawable_size(const struct wined3d_surface *surface, const stru
|
||||
unsigned int *width, unsigned int *height) DECLSPEC_HIDDEN;
|
||||
void surface_load_fb_texture(struct wined3d_surface *surface, BOOL srgb,
|
||||
struct wined3d_context *context) DECLSPEC_HIDDEN;
|
||||
@ -8282,7 +8282,7 @@ diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
|
||||
struct wined3d_context *context, DWORD location) DECLSPEC_HIDDEN;
|
||||
void surface_modify_ds_location(struct wined3d_surface *surface, DWORD location, UINT w, UINT h) DECLSPEC_HIDDEN;
|
||||
void surface_set_compatible_renderbuffer(struct wined3d_surface *surface,
|
||||
@@ -2893,6 +3025,11 @@ HRESULT surface_upload_from_surface(struct wined3d_surface *dst_surface, const P
|
||||
@@ -2896,6 +3028,11 @@ HRESULT surface_upload_from_surface(struct wined3d_surface *dst_surface, const P
|
||||
void wined3d_surface_upload_data(struct wined3d_surface *surface, const struct wined3d_gl_info *gl_info,
|
||||
const struct wined3d_format *format, const RECT *src_rect, UINT src_pitch, const POINT *dst_point,
|
||||
BOOL srgb, const struct wined3d_const_bo_address *data) DECLSPEC_HIDDEN;
|
||||
@ -8294,7 +8294,7 @@ diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
|
||||
|
||||
void draw_textured_quad(const struct wined3d_surface *src_surface, struct wined3d_context *context,
|
||||
const RECT *src_rect, const RECT *dst_rect, enum wined3d_texture_filter_type filter) DECLSPEC_HIDDEN;
|
||||
@@ -2907,6 +3044,12 @@ struct wined3d_sampler
|
||||
@@ -2910,6 +3047,12 @@ struct wined3d_sampler
|
||||
GLuint name;
|
||||
};
|
||||
|
||||
@ -8307,7 +8307,7 @@ diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
|
||||
struct wined3d_vertex_declaration_element
|
||||
{
|
||||
const struct wined3d_format *format;
|
||||
@@ -3002,6 +3145,7 @@ struct wined3d_stateblock
|
||||
@@ -3005,6 +3148,7 @@ struct wined3d_stateblock
|
||||
void stateblock_init_contained_states(struct wined3d_stateblock *stateblock) DECLSPEC_HIDDEN;
|
||||
|
||||
void state_cleanup(struct wined3d_state *state) DECLSPEC_HIDDEN;
|
||||
@ -8315,7 +8315,7 @@ diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
|
||||
void state_init(struct wined3d_state *state, struct wined3d_fb_state *fb,
|
||||
const struct wined3d_gl_info *gl_info, const struct wined3d_d3d_info *d3d_info,
|
||||
DWORD flags) DECLSPEC_HIDDEN;
|
||||
@@ -3015,53 +3159,150 @@ enum wined3d_push_constants
|
||||
@@ -3018,53 +3162,150 @@ enum wined3d_push_constants
|
||||
WINED3D_PUSH_CONSTANTS_PS_I,
|
||||
WINED3D_PUSH_CONSTANTS_VS_B,
|
||||
WINED3D_PUSH_CONSTANTS_PS_B,
|
||||
@ -8466,7 +8466,7 @@ diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
|
||||
void wined3d_cs_emit_set_rasterizer_state(struct wined3d_cs *cs,
|
||||
struct wined3d_rasterizer_state *rasterizer_state) DECLSPEC_HIDDEN;
|
||||
void wined3d_cs_emit_set_render_state(struct wined3d_cs *cs,
|
||||
@@ -3091,6 +3332,7 @@ void wined3d_cs_emit_set_transform(struct wined3d_cs *cs, enum wined3d_transform
|
||||
@@ -3094,6 +3335,7 @@ void wined3d_cs_emit_set_transform(struct wined3d_cs *cs, enum wined3d_transform
|
||||
void wined3d_cs_emit_set_vertex_declaration(struct wined3d_cs *cs,
|
||||
struct wined3d_vertex_declaration *declaration) DECLSPEC_HIDDEN;
|
||||
void wined3d_cs_emit_set_viewport(struct wined3d_cs *cs, const struct wined3d_viewport *viewport) DECLSPEC_HIDDEN;
|
||||
@ -8474,7 +8474,7 @@ diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
|
||||
void wined3d_cs_emit_unload_resource(struct wined3d_cs *cs, struct wined3d_resource *resource) DECLSPEC_HIDDEN;
|
||||
|
||||
static inline void wined3d_cs_push_constants(struct wined3d_cs *cs, enum wined3d_push_constants p,
|
||||
@@ -3098,6 +3340,25 @@ static inline void wined3d_cs_push_constants(struct wined3d_cs *cs, enum wined3d
|
||||
@@ -3101,6 +3343,25 @@ static inline void wined3d_cs_push_constants(struct wined3d_cs *cs, enum wined3d
|
||||
{
|
||||
cs->ops->push_constants(cs, p, start_idx, count, constants);
|
||||
}
|
||||
@ -8500,7 +8500,7 @@ diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
|
||||
|
||||
/* TODO: Add tests and support for FLOAT16_4 POSITIONT, D3DCOLOR position, other
|
||||
* fixed function semantics as D3DCOLOR or FLOAT16 */
|
||||
@@ -3124,6 +3385,9 @@ struct wined3d_buffer
|
||||
@@ -3127,6 +3388,9 @@ struct wined3d_buffer
|
||||
GLenum buffer_object_usage;
|
||||
GLenum buffer_type_hint;
|
||||
DWORD flags;
|
||||
@ -8510,7 +8510,7 @@ diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
|
||||
void *map_ptr;
|
||||
|
||||
struct wined3d_map_range *maps;
|
||||
@@ -3148,11 +3412,19 @@ void buffer_get_memory(struct wined3d_buffer *buffer, struct wined3d_context *co
|
||||
@@ -3151,11 +3415,19 @@ void buffer_get_memory(struct wined3d_buffer *buffer, struct wined3d_context *co
|
||||
BYTE *buffer_get_sysmem(struct wined3d_buffer *buffer, struct wined3d_context *context) DECLSPEC_HIDDEN;
|
||||
void buffer_internal_preload(struct wined3d_buffer *buffer, struct wined3d_context *context,
|
||||
const struct wined3d_state *state) DECLSPEC_HIDDEN;
|
||||
@ -8530,7 +8530,7 @@ diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
|
||||
|
||||
struct wined3d_rendertarget_view
|
||||
{
|
||||
@@ -3214,7 +3486,12 @@ struct wined3d_unordered_access_view
|
||||
@@ -3217,7 +3489,12 @@ struct wined3d_unordered_access_view
|
||||
struct wined3d_swapchain_ops
|
||||
{
|
||||
void (*swapchain_present)(struct wined3d_swapchain *swapchain,
|
||||
@ -8543,7 +8543,7 @@ diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
|
||||
void (*swapchain_frontbuffer_updated)(struct wined3d_swapchain *swapchain);
|
||||
};
|
||||
|
||||
@@ -3251,6 +3528,10 @@ struct wined3d_swapchain
|
||||
@@ -3254,6 +3531,10 @@ struct wined3d_swapchain
|
||||
|
||||
void wined3d_swapchain_activate(struct wined3d_swapchain *swapchain, BOOL activate) DECLSPEC_HIDDEN;
|
||||
struct wined3d_context *swapchain_get_context(struct wined3d_swapchain *swapchain) DECLSPEC_HIDDEN;
|
||||
|
Loading…
x
Reference in New Issue
Block a user