Module: wine
Branch: master
Commit: 8da7b13343edfa479f02d7e545c18acf2687d7f8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8da7b13343edfa479f02d7e54…
Author: Roderick Colenbrander <thunderbird2k(a)gmx.net>
Date: Wed Dec 27 22:01:37 2006 +0100
wgl: Fix wglGetPixelFormatAttribiv bug.
---
dlls/winex11.drv/opengl.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index cb7366a..384a29b 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -2572,7 +2572,16 @@ static GLboolean WINAPI X11DRV_wglGetPix
FIXME("unsupported %x WGL Attribute\n", curWGLAttr);
}
- if (0 != curGLXAttr) {
+ /* Retrieve a GLX FBConfigAttrib when the attribute to query is valid and
+ * iPixelFormat != 0. When iPixelFormat is 0 the only value which makes
+ * sense to query is WGL_NUMBER_PIXEL_FORMATS_ARB.
+ *
+ * TODO: properly test the behavior of wglGetPixelFormatAttrib*v on Windows
+ * and check which options can work using iPixelFormat=0 and which not.
+ * A problem would be that this function is an extension. This would
+ * mean that the behavior could differ between different vendors (ATI, Nvidia, ..).
+ */
+ if (0 != curGLXAttr && iPixelFormat != 0) {
/* Check if the format is supported by checking if iPixelFormat isn't larger than the max number of
* supported WGLFormats and also check if the GLX fmt_index is valid. */
if((iPixelFormat > 0) && ((iPixelFormat > nWGLFormats) || (fmt_index > nCfgs))) goto pix_error;
Module: wine
Branch: master
Commit: 214eb389c994e52972032a278fde26bbfa460225
URL: http://source.winehq.org/git/wine.git/?a=commit;h=214eb389c994e52972032a278…
Author: Rob Shearman <rob(a)codeweavers.com>
Date: Wed Dec 27 19:14:43 2006 +0000
advapi32: Change the test for the type parameter of RegQueryValueExA to only run on Win9x, since the value is set to a random value on NT.
---
dlls/advapi32/tests/registry.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/dlls/advapi32/tests/registry.c b/dlls/advapi32/tests/registry.c
index 152c8e7..45756c6 100644
--- a/dlls/advapi32/tests/registry.c
+++ b/dlls/advapi32/tests/registry.c
@@ -345,8 +345,12 @@ static void test_query_value_ex(void)
ret = RegQueryValueExA(HKEY_CLASSES_ROOT, "Nonexistent Value", NULL, &type, NULL, &size);
ok(ret == ERROR_FILE_NOT_FOUND, "expected ERROR_FILE_NOT_FOUND, got %d\n", ret);
ok(size == 0, "size should have been set to 0 instead of %d\n", size);
- ok(type == (DWORD)HKEY_CLASSES_ROOT /* NT */ || type == 0 /* Win9x */,
- "type should have been set to 0x80000000 or 0 instead of 0x%x\n", type);
+ /* the type parameter is cleared on Win9x, but is set to a random value on
+ * NT, so don't do this test there */
+ if (GetVersion() & 0x80000000)
+ ok(type == 0, "type should have been set to 0 instead of 0x%x\n", type);
+ else
+ trace("test_query_value_ex: type set to: 0x%08x\n", type);
size = sizeof(buffer);
ret = RegQueryValueExA(HKEY_CLASSES_ROOT, "Nonexistent Value", NULL, &type, buffer, &size);
Module: wine
Branch: master
Commit: 73b724e7e60146889768964bb77fa5d809f2b16f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=73b724e7e60146889768964bb…
Author: Alexandre Julliard <julliard(a)winehq.org>
Date: Thu Dec 28 11:40:19 2006 +0100
configure: Detect out of tree builds made from an unclean source tree.
---
configure | 11 +++++++++++
configure.ac | 9 +++++++++
2 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/configure b/configure
index 479aa40..6e7728f 100755
--- a/configure
+++ b/configure
@@ -1999,6 +1999,17 @@ then
WIN16_INSTALL=""
fi
+case "$srcdir" in
+ .) ;;
+ *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
+ { { echo "$as_me:$LINENO: error: you are building out of the source tree, but the source tree contains object files.
+You need to run 'make distclean' in the source tree first." >&5
+echo "$as_me: error: you are building out of the source tree, but the source tree contains object files.
+You need to run 'make distclean' in the source tree first." >&2;}
+ { (exit 1); exit 1; }; }
+ fi ;;
+esac
+
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
diff --git a/configure.ac b/configure.ac
index 48b5a23..037e47a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -49,6 +49,15 @@ then
WIN16_INSTALL=""
fi
+dnl check for out of tree build with unclean source tree
+case "$srcdir" in
+ .) ;;
+ *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
+ AC_MSG_ERROR([you are building out of the source tree, but the source tree contains object files.
+You need to run 'make distclean' in the source tree first.])
+ fi ;;
+esac
+
dnl **** Check for some programs ****
AC_PROG_MAKE_SET