Module: wine
Branch: master
Commit: e2f888a617f6344d9676694603edcfd173fbb9c1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e2f888a617f6344d967669460…
Author: Alexandre Julliard <julliard(a)winehq.org>
Date: Tue Apr 7 20:41:30 2009 +0200
gdi32: Allow the visible region to be zero since this is the case for metafiles.
---
dlls/gdi32/clipping.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/dlls/gdi32/clipping.c b/dlls/gdi32/clipping.c
index 8e80207..4e294b6 100644
--- a/dlls/gdi32/clipping.c
+++ b/dlls/gdi32/clipping.c
@@ -51,12 +51,6 @@ void CLIPPING_UpdateGCRegion( DC * dc )
{
HRGN clip_rgn;
- if (!dc->hVisRgn)
- {
- ERR("hVisRgn is zero. Please report this.\n" );
- exit(1);
- }
-
/* update the intersection of meta and clip regions */
if (dc->hMetaRgn && dc->hClipRgn)
{
Module: wine
Branch: master
Commit: 4ea0b382657192c2f72a2101cc0f53cadd1258a7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4ea0b382657192c2f72a2101c…
Author: Nicolas Le Cam <niko.lecam(a)gmail.com>
Date: Mon Apr 6 19:56:45 2009 +0200
shell32/tests: Fix wrong comment and update test accordingly.
---
dlls/shell32/tests/shlfolder.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/dlls/shell32/tests/shlfolder.c b/dlls/shell32/tests/shlfolder.c
index de28267..5492b84 100644
--- a/dlls/shell32/tests/shlfolder.c
+++ b/dlls/shell32/tests/shlfolder.c
@@ -769,10 +769,6 @@ static void test_GetAttributesOf(void)
/* Windows sets the SFGAO_CANLINK flag, when MyComputer is queried via the Desktop
* folder object. It doesn't do this, if MyComputer is queried directly (see below).
- * SFGAO_CANLINK is the same as DROPEFFECT_LINK, which MSDN says means: "Drag source
- * should create a link to the original data". You can't create links on MyComputer on
- * Windows, so this flag shouldn't be set. Seems like a bug in Windows. As long as nobody
- * depends on this bug, we probably shouldn't imitate it.
*/
dwFlags = 0xffffffff;
hr = IShellFolder_GetAttributesOf(psfDesktop, 1, (LPCITEMIDLIST*)&pidlMyComputer, &dwFlags);
@@ -780,9 +776,10 @@ static void test_GetAttributesOf(void)
for (i = 0, foundFlagsMatch = FALSE; !foundFlagsMatch &&
i < sizeof(myComputerFlags) / sizeof(myComputerFlags[0]); i++)
{
- if (myComputerFlags[i] == (dwFlags & ~(DWORD)SFGAO_CANLINK))
+ if ((myComputerFlags[i] | SFGAO_CANLINK) == dwFlags)
foundFlagsMatch = TRUE;
}
+ todo_wine
ok (foundFlagsMatch, "Wrong MyComputer attributes: %08x\n", dwFlags);
hr = IShellFolder_BindToObject(psfDesktop, pidlMyComputer, NULL, &IID_IShellFolder, (LPVOID*)&psfMyComputer);