Module: wine
Branch: master
Commit: 709b42346ab855b97578d6304fa972bb6a7aa9d4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=709b42346ab855b97578d6304…
Author: Francois Gouget <fgouget(a)free.fr>
Date: Thu Mar 31 13:06:23 2011 +0200
msvcrt/tests: Wine should not have trouble with the environ pointers so replace a few skip()s with win_skip()s.
---
dlls/msvcrt/tests/environ.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/msvcrt/tests/environ.c b/dlls/msvcrt/tests/environ.c
index 9e1263a..fdfe81f 100644
--- a/dlls/msvcrt/tests/environ.c
+++ b/dlls/msvcrt/tests/environ.c
@@ -93,7 +93,7 @@ static void test__environ(void)
"Expected _environ pointers to be identical\n" );
}
else
- skip( "__p__environ() is not available\n" );
+ win_skip( "__p__environ() is not available\n" );
/* Note that msvcrt from Windows versions older than Vista
* expects the mode pointer parameter to be valid.*/
@@ -138,7 +138,7 @@ static void test__wenviron(void)
ok( *p_wenviron == NULL, "Expected _wenviron to be NULL, got %p\n", *p_wenviron );
else
{
- skip( "Pointer to _wenviron is not valid\n" );
+ win_skip( "Pointer to _wenviron is not valid\n" );
return;
}
@@ -149,7 +149,7 @@ static void test__wenviron(void)
"Expected _wenviron pointers to be NULL\n" );
}
else
- skip( "__p__wenviron() is not available\n" );
+ win_skip( "__p__wenviron() is not available\n" );
/* __getmainargs doesn't initialize _wenviron. */
__getmainargs(&argc, &argv, &envp, 0, &mode);
Module: wine
Branch: master
Commit: f1beea4f861be815b5b6c3d539ba4eec9c668414
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f1beea4f861be815b5b6c3d53…
Author: Vincent Pelletier <plr.vincent(a)gmail.com>
Date: Wed Mar 30 21:52:14 2011 +0200
dinput: Effect length can actually be 0.
This fixes force feedback devices slamming for 10ms at full strength, as
attack is an absolute value, not a factor of effect level.
---
dlls/dinput/effect_linuxinput.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/dlls/dinput/effect_linuxinput.c b/dlls/dinput/effect_linuxinput.c
index fbc5994..0154f49 100644
--- a/dlls/dinput/effect_linuxinput.c
+++ b/dlls/dinput/effect_linuxinput.c
@@ -606,13 +606,12 @@ static HRESULT WINAPI LinuxInputEffectImpl_SetParameters(
else env = NULL;
if (peff->lpEnvelope == NULL) {
- /* if this type had an envelope, reset it
- * note that length can never be zero, so we set it to something minuscule */
+ /* if this type had an envelope, reset it */
if (env) {
- env->attack_length = 0x10;
- env->attack_level = 0x7FFF;
- env->fade_length = 0x10;
- env->fade_level = 0x7FFF;
+ env->attack_length = 0;
+ env->attack_level = 0;
+ env->fade_length = 0;
+ env->fade_level = 0;
}
} else {
/* did we get passed an envelope for a type that doesn't even have one? */