Re: added moethod stub for HttpPrepareUrl in dlls/httpapi/httpapi_main.c

2011-11-20 Thread Bruno Jesus
You have to use your full name (as advised before).
See http://wiki.winehq.org/SubmittingPatches for more information.

Also, gmail is breaking your patch, attach the patch file instead of
pasting it to the email body.

Best wishes,
Bruno

On Sat, Nov 19, 2011 at 09:24, ArasH arash.co...@gmail.com wrote:
 ---
  dlls/httpapi/httpapi_main.c |   21 +
  1 files changed, 21 insertions(+), 0 deletions(-)

 diff --git a/dlls/httpapi/httpapi_main.c b/dlls/httpapi/httpapi_main.c
 index 3375cb6..c5c8cda 100644
 --- a/dlls/httpapi/httpapi_main.c
 +++ b/dlls/httpapi/httpapi_main.c
 @@ -85,6 +85,27 @@ ULONG WINAPI HttpTerminate( ULONG flags, PVOID reserved )
  }

  /***
 + *        HttpPrepareUrl      (HTTPAPI.@)
 + * parses, analyzes, and normalizes a non-normalized Unicode or punycode URL
 + * so it is safe and valid to use in other HTTP functions.
 + *
 + *  PARAMS
 + *    reserved     [IO] reserved, must be NULL
 + *    flags        [ I] reserved. must be zero
 + *    url          [ I] a pointer to a string that represents the
 non-normalized URL
 + *    prepared_url [ O] on success, a pointer to a string
 representing the normalized URL.
 + *
 + * RETURNS
 + *   ERROR_SUCCESS if function succeeds, or error code if function fails
 + *
 + */
 +ULONG WINAPI HttpPrepareUrl( PVOID reserved, ULONG flags, PCWSTR url,
 PWSTR *prepared_url)
 +{
 +    FIXME( (%p, 0x%x, %p): stub!\n, reserved, flags, url );
 +    return ERROR_SUCCESS;
 +}
 +
 +/***
  *        HttpDeleteServiceConfiguration     (HTTPAPI.@)
  *
  * Remove configuration record from HTTP Server API configuration store
 --
 1.6.2.2







Re: [3/4] winemaker: Be less picky when detecting the target type (try 2)

2011-11-20 Thread André Hentschel
Am 19.11.2011 20:18, schrieb Vitaliy Margolen:
 On 11/19/2011 11:42 AM, André Hentschel wrote:
 this catches more than one 0 after the space and possible 0s after the x
 +if (/[[:space:]]0+x0*101$/) {
 For more then one you should use + not *. * means any number, including 
 0.
 
 Vitaliy

So i used:
+ before x to match at least one 0, but don't complain if it's more than one 
like 00x0101
* after x to match no 0 like in 00x101 or expect much more like in 
00x0101 or maybe something like 0x0099

that's what i meant with possible 0s

-- 

Best Regards, André Hentschel




re: ID3DXEffect test on win

2011-11-20 Thread Dan Kegel
Hi Rico,
I compiled the 32 bit wine tests on win7 64 bit using cygwin, and sure enough,
there are 40 test failures there.  You should probably avoid doing direct
equality tests on floats; see e.g. compare() at line 47 of
d3dx9_36/tests/mesh.c.
You may have to tweak the slop value.  (Google floating point comparison if you
want the gory details of how tools like google test and boost's
test_tools do it right.)

effect.c:894: Test failed: 0 - f3: GetValue value[2] failed, got
0x3e50d0d2, expected 0x3e50d0d1
effect.c:1142: Test failed: 0 - f3: GetFloatArray favalue[2] failed,
got 0.203922, expected 0.203922
effect.c:1211: Test failed: 0 - f3: GetVector fvalue[2] failed, got
0.203922, expected 0.203922
effect.c:1461: Test failed: 0 - f3: GetMatrixTranspose fvalue[2]
failed, got 0.203922, expected 0.203922
effect.c:894: Test failed: 0 - f4: GetValue value[2] failed, got
0x3e50d0d2, expected 0x3e50d0d1
effect.c:894: Test failed: 0 - f4: GetValue value[3] failed, got
0x3df8f8fa, expected 0x3df8f8f9
effect.c:1142: Test failed: 0 - f4: GetFloatArray favalue[2] failed,
got 0.203922, expected 0.203922
effect.c:1142: Test failed: 0 - f4: GetFloatArray favalue[3] failed,
got 0.121569, expected 0.121569
effect.c:1211: Test failed: 0 - f4: GetVector fvalue[2] failed, got
0.203922, expected 0.203922
effect.c:1211: Test failed: 0 - f4: GetVector fvalue[3] failed, got
0.121569, expected 0.121569
effect.c:1461: Test failed: 0 - f4: GetMatrixTranspose fvalue[2]
failed, got 0.203922, expected 0.203922
effect.c:1461: Test failed: 0 - f4: GetMatrixTranspose fvalue[3]
failed, got 0.121569, expected 0.121569
effect.c:894: Test failed: 0 - f31: GetValue value[2] failed, got
0x3e50d0d2, expected 0x3e50d0d1
effect.c:1142: Test failed: 0 - f31: GetFloatArray favalue[2] failed,
got 0.203922, expected 0.203922
effect.c:1321: Test failed: 0 - f31: GetMatrix fvalue[8] failed, got
0.203922, expected 0.203922
effect.c:1438: Test failed: 0 - f31: GetMatrixTranspose fvalue[2]
failed, got 0.203922, expected 0.203922
effect.c:894: Test failed: 0 - f41: GetValue value[2] failed, got
0x3e50d0d2, expected 0x3e50d0d1
effect.c:894: Test failed: 0 - f41: GetValue value[3] failed, got
0x3df8f8fa, expected 0x3df8f8f9
effect.c:1142: Test failed: 0 - f41: GetFloatArray favalue[2] failed,
got 0.203922, expected 0.203922
effect.c:1142: Test failed: 0 - f41: GetFloatArray favalue[3] failed,
got 0.121569, expected 0.121569
effect.c:1321: Test failed: 0 - f41: GetMatrix fvalue[8] failed, got
0.203922, expected 0.203922
effect.c:1321: Test failed: 0 - f41: GetMatrix fvalue[12] failed, got
0.121569, expected 0.121569
effect.c:1438: Test failed: 0 - f41: GetMatrixTranspose fvalue[2]
failed, got 0.203922, expected 0.203922
effect.c:1438: Test failed: 0 - f41: GetMatrixTranspose fvalue[3]
failed, got 0.121569, expected 0.121569
effect.c:894: Test failed: 3 - f3: GetValue value[2] failed, got
0x3e50d0d2, expected 0x3e50d0d1
effect.c:1142: Test failed: 3 - f3: GetFloatArray favalue[2] failed,
got 0.203922, expected 0.203922
effect.c:1211: Test failed: 3 - f3: GetVector fvalue[2] failed, got
0.203922, expected 0.203922
effect.c:1461: Test failed: 3 - f3: GetMatrixTranspose fvalue[2]
failed, got 0.203922, expected 0.203922
effect.c:894: Test failed: 3 - f3min: GetValue value[2] failed, got
0x3e50d0d2, expected 0x3e50d0d1
effect.c:1142: Test failed: 3 - f3min: GetFloatArray favalue[2]
failed, got 0.203922, expected 0.203922
effect.c:1211: Test failed: 3 - f3min: GetVector fvalue[2] failed, got
0.203922, expected 0.203922
effect.c:1461: Test failed: 3 - f3min: GetMatrixTranspose fvalue[2]
failed, got 0.203922, expected 0.203922
effect.c:894: Test failed: 3 - f3max: GetValue value[2] failed, got
0x3e50d0d2, expected 0x3e50d0d1
effect.c:1142: Test failed: 3 - f3max: GetFloatArray favalue[2]
failed, got 0.203922, expected 0.203922
effect.c:1211: Test failed: 3 - f3max: GetVector fvalue[2] failed, got
0.203922, expected 0.203922
effect.c:1461: Test failed: 3 - f3max: GetMatrixTranspose fvalue[2]
failed, got 0.203922, expected 0.203922
effect.c:894: Test failed: 3 - f4: GetValue value[2] failed, got
0x3e50d0d2, expected 0x3e50d0d1
effect.c:894: Test failed: 3 - f4: GetValue value[3] failed, got
0x3df8f8fa, expected 0x3df8f8f9
effect.c:1142: Test failed: 3 - f4: GetFloatArray favalue[2] failed,
got 0.203922, expected 0.203922
effect.c:1142: Test failed: 3 - f4: GetFloatArray favalue[3] failed,
got 0.121569, expected 0.121569
effect.c:1211: Test failed: 3 - f4: GetVector fvalue[2] failed, got
0.203922, expected 0.203922
effect.c:1211: Test failed: 3 - f4: GetVector fvalue[3] failed, got
0.121569, expected 0.121569
effect.c:1461: Test failed: 3 - f4: GetMatrixTranspose fvalue[2]
failed, got 0.203922, expected 0.203922
effect.c:1461: Test failed: 3 - f4: GetMatrixTranspose fvalue[3]
failed, got 0.121569, expected 0.121569
effect.c:894: Test failed: 3 - f4min: GetValue value[2] failed, got
0x3e50d0d2, expected 0x3e50d0d1
effect.c:894: Test failed: 3 - f4min: GetValue value[3] 

Re: ID3DXEffect test on win

2011-11-20 Thread Rico Schüller

Hi,

thank you all for the tests (also to those who haven't replied to 
wine-devel). With the data I figured out how to solve the test results 
in this test.


In general I'd like to be as exact as possible with the implementation 
and in this case the values look always the same in all logs I got. 
There are of curse examples where a compare function is a must have, but 
I don't think it's needed here. I asked to test, because my goal was to 
figure out, if the results are equal on all systems and that seems to be 
the case here. The small difference comes from a implementation 
mistake from my own implementation, I took accidentally the values from 
the wrong implementation, with that fixed, all tests should pass.


Thanks
Rico

Am 20.11.2011 18:57, schrieb Dan Kegel:

Hi Rico,
I compiled the 32 bit wine tests on win7 64 bit using cygwin, and sure enough,
there are 40 test failures there.  You should probably avoid doing direct
equality tests on floats; see e.g. compare() at line 47 of
d3dx9_36/tests/mesh.c.
You may have to tweak the slop value.  (Google floating point comparison if you
want the gory details of how tools like google test and boost's
test_tools do it right.)

effect.c:894: Test failed: 0 - f3: GetValue value[2] failed, got
0x3e50d0d2, expected 0x3e50d0d1
effect.c:1142: Test failed: 0 - f3: GetFloatArray favalue[2] failed,
got 0.203922, expected 0.203922
effect.c:1211: Test failed: 0 - f3: GetVector fvalue[2] failed, got
0.203922, expected 0.203922
effect.c:1461: Test failed: 0 - f3: GetMatrixTranspose fvalue[2]
failed, got 0.203922, expected 0.203922
effect.c:894: Test failed: 0 - f4: GetValue value[2] failed, got
0x3e50d0d2, expected 0x3e50d0d1
effect.c:894: Test failed: 0 - f4: GetValue value[3] failed, got
0x3df8f8fa, expected 0x3df8f8f9
effect.c:1142: Test failed: 0 - f4: GetFloatArray favalue[2] failed,
got 0.203922, expected 0.203922
effect.c:1142: Test failed: 0 - f4: GetFloatArray favalue[3] failed,
got 0.121569, expected 0.121569
effect.c:1211: Test failed: 0 - f4: GetVector fvalue[2] failed, got
0.203922, expected 0.203922
effect.c:1211: Test failed: 0 - f4: GetVector fvalue[3] failed, got
0.121569, expected 0.121569
effect.c:1461: Test failed: 0 - f4: GetMatrixTranspose fvalue[2]
failed, got 0.203922, expected 0.203922
effect.c:1461: Test failed: 0 - f4: GetMatrixTranspose fvalue[3]
failed, got 0.121569, expected 0.121569
effect.c:894: Test failed: 0 - f31: GetValue value[2] failed, got
0x3e50d0d2, expected 0x3e50d0d1
effect.c:1142: Test failed: 0 - f31: GetFloatArray favalue[2] failed,
got 0.203922, expected 0.203922
effect.c:1321: Test failed: 0 - f31: GetMatrix fvalue[8] failed, got
0.203922, expected 0.203922
effect.c:1438: Test failed: 0 - f31: GetMatrixTranspose fvalue[2]
failed, got 0.203922, expected 0.203922
effect.c:894: Test failed: 0 - f41: GetValue value[2] failed, got
0x3e50d0d2, expected 0x3e50d0d1
effect.c:894: Test failed: 0 - f41: GetValue value[3] failed, got
0x3df8f8fa, expected 0x3df8f8f9
effect.c:1142: Test failed: 0 - f41: GetFloatArray favalue[2] failed,
got 0.203922, expected 0.203922
effect.c:1142: Test failed: 0 - f41: GetFloatArray favalue[3] failed,
got 0.121569, expected 0.121569
effect.c:1321: Test failed: 0 - f41: GetMatrix fvalue[8] failed, got
0.203922, expected 0.203922
effect.c:1321: Test failed: 0 - f41: GetMatrix fvalue[12] failed, got
0.121569, expected 0.121569
effect.c:1438: Test failed: 0 - f41: GetMatrixTranspose fvalue[2]
failed, got 0.203922, expected 0.203922
effect.c:1438: Test failed: 0 - f41: GetMatrixTranspose fvalue[3]
failed, got 0.121569, expected 0.121569
effect.c:894: Test failed: 3 - f3: GetValue value[2] failed, got
0x3e50d0d2, expected 0x3e50d0d1
effect.c:1142: Test failed: 3 - f3: GetFloatArray favalue[2] failed,
got 0.203922, expected 0.203922
effect.c:1211: Test failed: 3 - f3: GetVector fvalue[2] failed, got
0.203922, expected 0.203922
effect.c:1461: Test failed: 3 - f3: GetMatrixTranspose fvalue[2]
failed, got 0.203922, expected 0.203922
effect.c:894: Test failed: 3 - f3min: GetValue value[2] failed, got
0x3e50d0d2, expected 0x3e50d0d1
effect.c:1142: Test failed: 3 - f3min: GetFloatArray favalue[2]
failed, got 0.203922, expected 0.203922
effect.c:1211: Test failed: 3 - f3min: GetVector fvalue[2] failed, got
0.203922, expected 0.203922
effect.c:1461: Test failed: 3 - f3min: GetMatrixTranspose fvalue[2]
failed, got 0.203922, expected 0.203922
effect.c:894: Test failed: 3 - f3max: GetValue value[2] failed, got
0x3e50d0d2, expected 0x3e50d0d1
effect.c:1142: Test failed: 3 - f3max: GetFloatArray favalue[2]
failed, got 0.203922, expected 0.203922
effect.c:1211: Test failed: 3 - f3max: GetVector fvalue[2] failed, got
0.203922, expected 0.203922
effect.c:1461: Test failed: 3 - f3max: GetMatrixTranspose fvalue[2]
failed, got 0.203922, expected 0.203922
effect.c:894: Test failed: 3 - f4: GetValue value[2] failed, got
0x3e50d0d2, expected 0x3e50d0d1
effect.c:894: Test failed: 3 - f4: GetValue value[3] failed, got
0x3df8f8fa,