Re: oleaut32: Add ICreateTypeInfo2::SetVarName implementation

2013-08-30 Thread Nikolay Sivov
On 8/30/2013 16:28, Piotr Caban wrote: --- dlls/oleaut32/tests/typelib.c | 13 +++-- dlls/oleaut32/typelib.c | 13 +++-- 2 files changed, 22 insertions(+), 4 deletions(-) ITypeInfoImpl *This = info_impl_from_ICreateTypeInfo2(iface); -FIXME("%p %u %s - stub\n",

Re: oleaut32/tests: Some tests for LoadRegTypeLib() with activated context

2013-08-22 Thread Nikolay Sivov
On 08/22/2013 04:08 PM, Alexandre Julliard wrote: Nikolay Sivov writes: Some tests for LoadRegTypeLib() with activated context From 1ea3d8c82dd77ac14f2cdec748c0284032958b2f Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Wed, 21 Aug 2013 12:34:47 +0400 Subject: [PATCH 5/6] Some tests for

Re: oleaut32/tests: Some tests for LoadRegTypeLib() with activated context

2013-08-22 Thread Alexandre Julliard
Nikolay Sivov writes: > Some tests for LoadRegTypeLib() with activated context > > From 1ea3d8c82dd77ac14f2cdec748c0284032958b2f Mon Sep 17 00:00:00 2001 > From: Nikolay Sivov > Date: Wed, 21 Aug 2013 12:34:47 +0400 > Subject: [PATCH 5/6] Some tests for LoadRegTypeLib() with activated context I

Re: oleaut32/tests: Use bool instead of int when appropriate

2013-06-26 Thread Marvin
Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at http://testbot.winehq.org/JobDetails.pl?Key=26136 Your paranoid android

Re: oleaut32/tests: Use bool instead of int when appropriate

2013-06-26 Thread Marvin
Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at http://testbot.winehq.org/JobDetails.pl?Key=26136 Your paranoid android

Re: oleaut32:

2013-06-13 Thread Marvin
Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at http://testbot.winehq.org/JobDetails.pl?Key=25960 Your paranoid android

Re: oleaut32: Add DECIMAL tests

2013-06-13 Thread Marvin
Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at http://testbot.winehq.org/JobDetails.pl?Key=25961 Your paranoid android

Re: oleaut32: Indentation fix (Try 2)

2012-12-20 Thread Andrew Talbot
Sorry, I should have labelled this patch as "Try 2". -- Andy.

Re: oleaut32: Indentation Fix

2012-12-20 Thread Alexandre Julliard
Andrew Talbot writes: > Changelog: > oleaut32: Indentation Fix. Please avoid reformatting hundreds of lines for no reason. Only fix the parts where the indentation is actually incorrect. -- Alexandre Julliard julli...@winehq.org

Re: oleaut32: Dont output an error when the typelib cannot be found

2012-12-18 Thread Alexandre Julliard
Alistair Leslie-Hughes writes: > diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c > index fa9b050..04914e0 100644 > --- a/dlls/oleaut32/typelib.c > +++ b/dlls/oleaut32/typelib.c > @@ -2544,9 +2544,11 @@ static HRESULT TLB_PEFile_Open(LPCWSTR path, INT > index, LPVOID *ppBase, DWORD

Re: oleaut32: Added a test for prop getter invocation with different flags

2012-12-14 Thread Nikolay Sivov
Heh, sure I can do that. I did that initially with test_tlb.idl but after that I got a bunch of failures cause of existing tests. I will update existing tests then. On Fri, Dec 14, 2012 at 7:09 PM, Alexandre Julliard wrote: > Nikolay Sivov writes: > > > Don't know what it wants here. Probably i

Re: oleaut32: Added a test for prop getter invocation with different flags

2012-12-14 Thread Alexandre Julliard
Nikolay Sivov writes: > Don't know what it wants here. Probably it doesn't like new idl file? I don't like it either ;-) Any chance you could put that in one of the existing files? -- Alexandre Julliard julli...@winehq.org

Re: oleaut32: Added a test for prop getter invocation with different flags

2012-12-14 Thread Marvin
Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at http://testbot.winehq.org/JobDetails.pl?Key=23397 Your paranoid android

Re: oleaut32: Added a test for prop getter invocation with different flags

2012-12-14 Thread Nikolay Sivov
Don't know what it wants here. Probably it doesn't like new idl file? On Fri, Dec 14, 2012 at 3:15 PM, Marvin wrote: > Hi, > > While running your changed tests on Windows, I think I found new failures. > Being a bot and all I'm not very good at pattern recognition, so I might be > wrong, but co

Re: oleaut32: VaraintChangeType to support VT_BSTR to VT_UI2|VT_ARRAY

2012-08-24 Thread Marvin
Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at http://testbot.winehq.org/JobDetails.pl?Key=21195 Your paranoid android

Re: oleaut32: VaraintChangeType to support VT_BSTR to VT_UI2|VT_ARRAY

2012-08-24 Thread Dmitry Timoshkov
Alistair Leslie-Hughes wrote: > Changelog: > oleaut32: VaraintChangeType to support VT_BSTR to VT_UI2|VT_ARRAY Please resend the test separately, your fix conflicts with the patch sent by Roman Dadkov. -- Dmitry.

Re: oleaut32: Add support for boolean strings in VarNot.

2012-07-25 Thread Marvin
Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at http://winetestbot.dolphin/JobDetails.pl?Key=87 Your paranoid android.

Re: oleaut32: Add a test for BSTR cache. Take 3.

2012-06-05 Thread Dmitry Timoshkov
Jacek Caban wrote: > >> BTW, did you test the app on Windows with disabled BSTR cache? It's easy > >> to do by setting OANOCACHE environment variable before running the app. > >> If that breaks the app, then indeed the app is broken in a way that it > >> depends on BSTR cache behaviour. > > It's

Re: oleaut32: Add a test for BSTR cache. Take 3.

2012-06-05 Thread Jacek Caban
On 06/05/12 13:31, Dmitry Timoshkov wrote: > Jacek Caban wrote: > >> BTW, did you test the app on Windows with disabled BSTR cache? It's easy >> to do by setting OANOCACHE environment variable before running the app. >> If that breaks the app, then indeed the app is broken in a way that it >> depe

Re: oleaut32: Add a test for BSTR cache. Take 3.

2012-06-05 Thread Alexandre Julliard
Dmitry Timoshkov writes: > Alexandre Julliard wrote: > >> That doesn't seem very useful. What use case would there be for an app >> to rely on some random 75% of its strings to remain valid? > > Although the test is about statistics, my intention was to show that BSTR > cache in Wine corrupts ca

Re: oleaut32: Add a test for BSTR cache. Take 3.

2012-06-05 Thread Dmitry Timoshkov
Jacek Caban wrote: > BTW, did you test the app on Windows with disabled BSTR cache? It's easy > to do by setting OANOCACHE environment variable before running the app. > If that breaks the app, then indeed the app is broken in a way that it > depends on BSTR cache behaviour. It's easy to test un

Re: oleaut32: Add a test for BSTR cache. Take 3.

2012-06-05 Thread Jacek Caban
Hi Dmitry, On 06/05/12 13:05, Dmitry Timoshkov wrote: > Alexandre Julliard wrote: > >> That doesn't seem very useful. What use case would there be for an app >> to rely on some random 75% of its strings to remain valid? > Although the test is about statistics, my intention was to show that BSTR >

Re: oleaut32: Add a test for BSTR cache. Take 3.

2012-06-05 Thread Dmitry Timoshkov
Alexandre Julliard wrote: > That doesn't seem very useful. What use case would there be for an app > to rely on some random 75% of its strings to remain valid? Although the test is about statistics, my intention was to show that BSTR cache in Wine corrupts cached strings. I could try to figure o

Re: oleaut32: Add a test for BSTR cache. Take 3.

2012-06-05 Thread Alexandre Julliard
Dmitry Timoshkov writes: > +for (i = 0; i < sizeof(bstr)/sizeof(bstr[0]); i++) > +{ > +INTERNAL_BSTR *data = Get(bstr[i]); > + > +for (j = 0; j < i; j++) str[j] = '0' + i % 10; > + > +if (data->dwLen == i * sizeof(WCHAR)) > +good_length_entries++; > +

Re: oleaut32: Add a test for BSTR cache.

2012-06-04 Thread Marvin
Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at http://testbot.winehq.org/JobDetails.pl?Key=18731 Your paranoid android

Re: oleaut32/tests: Skip tests if typelib can't be registered

2011-08-03 Thread André Hentschel
Am 03.08.2011 22:14, schrieb Octavian Voicu: > 2011/8/3 André Hentschel mailto:n...@dawncrow.de>> > > a80a90fcb7f917ef4ec999007f5a49eb63d1b0a6 > > > Doesn't look like a valid commit... which one is that? > > Octavian sry, i mean 862cc73fb4cd8e6c8d454ab822a70a5072cb5dda -- Best Regards,

Re: oleaut32/tests: Skip tests if typelib can't be registered

2011-08-03 Thread Octavian Voicu
2011/8/3 André Hentschel > a80a90fcb7f917ef4ec999007f5a49eb63d1b0a6 > Doesn't look like a valid commit... which one is that? Octavian

Re: oleaut32: Skip tests if interface is not accessable

2011-08-03 Thread Alexandre Julliard
André Hentschel writes: > The hole test_ function depends on succeeding here (more than i thought first) Actually you'd want to skip even more than that, the real failure is earlier. -- Alexandre Julliard julli...@winehq.org

Re: oleaut32: Add DISPID_PICT_RENDER support to OLEPictureImpl_Invoke

2011-07-12 Thread Nikolay Sivov
On Tue, Jul 12, 2011 at 1:19 PM, Alistair Leslie-Hughes wrote: > Hi, > > > Changelog: >    oleaut32: Add DISPID_PICT_RENDER support to OLEPictureImpl_Invoke > + case DISPID_PICT_RENDER: +if (wFlags & DISPATCH_METHOD) +{ + TRACE("DISPID_PICT_RENDER %d %d %d %d %d %d %d %d %d %d\n", +

RE: oleaut32: Add DISPID_PICT_RENDER support to OLEPictureImpl_Invoke

2011-07-12 Thread wylda
Hi, isn't there a white space issue? (trailing) Regards, W.

Re: oleaut32: Implement ICreateTypeInfo2 SetHelpStringContext

2011-07-07 Thread Nikolay Sivov
On Thu, Jul 7, 2011 at 2:09 PM, Alistair Leslie-Hughes wrote: > Hi, > > > Changelog: >    oleaut32: Implement ICreateTypeInfo2 SetHelpStringContext > +ICreateTypeInfo2Impl *This = impl_from_ICreateTypeInfo2(iface); + +TRACE("(%p,%d), stub!\n", iface, dwHelpStringContext); It's not a stub

Re: oleaut32: use the locale settings for digit group sizes

2011-07-04 Thread Marvin
Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at http://testbot.winehq.org/JobDetails.pl?Key=12210 Your paranoid android

Re: oleaut32: Implement ICreateTypeInfo2 SetHelpStringContext

2011-06-27 Thread Michael Stefaniuc
Hello Alistair, Alistair Leslie-Hughes wrote: > Changelog: > oleaut32: Implement ICreateTypeInfo2 SetHelpStringContext > > dlls/oleaut32/typelib2.c |9 +++-- > 1 files changed, 7 insertions(+), 2 deletions(-) > > diff --git a/dlls/oleaut32/typelib2.c b/dlls/oleaut32/typelib2.c > inde

Re: oleaut32/tests: remove macros from test_VarCyCmpR8

2011-05-19 Thread Nikolay Sivov
On Thu, May 19, 2011 at 11:30 AM, Austin English wrote: > -- > -Austin > > > > This test should use a table+loop I think.

Re: oleaut32/tests: fix a couple todo_wine's

2011-02-24 Thread Marvin
Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at http://testbot.winehq.org/JobDetails.pl?Key=9472 Your paranoid android.

Re: oleaut32: Implement ITypeInfo_GetNames Stub/Proxy (resend)

2011-02-22 Thread Huw Davies
On Tue, Feb 22, 2011 at 09:02:38PM +1100, Alistair Leslie-Hughes wrote: > >From 6aa7bfa0c06b746ee64daf56f2b02e6f38542d54 Mon Sep 17 00:00:00 2001 > From: Alistair Leslie-Hughes > Date: Fri, 18 Feb 2011 12:04:56 +1100 > Subject: [PATCH] Implement ITypeInfo_GetNames Stub/Proxy > To: wine-patches >

Re: oleaut32: Fix copying an array of 0 elements

2011-02-07 Thread Marvin
Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at http://testbot.winehq.org/JobDetails.pl?Key=8987 Your paranoid android.

Re: oleaut32/typelib2: Use implementation pointer to trace ICreateTypeInfo2

2011-01-24 Thread Nikolay Sivov
On 1/24/2011 12:38, Michael Stefaniuc wrote: Hello Nikolay, On 01/24/2011 01:01 AM, Nikolay Sivov wrote: Use implementation pointer to trace ICreateTypeInfo2 diff --git a/dlls/oleaut32/typelib2.c b/dlls/oleaut32/typelib2.c index 8260ef2..5c843a1 100644 --- a/dlls/oleaut32/typelib2.c +++ b/dl

Re: oleaut32/typelib2: Use implementation pointer to trace ICreateTypeInfo2

2011-01-24 Thread Michael Stefaniuc
Hello Nikolay, On 01/24/2011 01:01 AM, Nikolay Sivov wrote: Use implementation pointer to trace ICreateTypeInfo2 diff --git a/dlls/oleaut32/typelib2.c b/dlls/oleaut32/typelib2.c index 8260ef2..5c843a1 100644 --- a/dlls/oleaut32/typelib2.c +++ b/dlls/oleaut32/typelib2.c @@ -2322,6 +2321,7 @

Re: oleaut32/tmarshal: Remove S_OK value assumptions, fix potential stream leak

2011-01-19 Thread Alexandre Julliard
Nikolay Sivov writes: > Remove S_OK value assumptions, fix potential stream leak Returning an error value and 0 on success is a common pattern, using a magic constant for 0 is not an improvement. -- Alexandre Julliard julli...@winehq.org

Re: oleaut32/tests: Use an iface instead of an vtbl pointer in IRecordInfoImpl

2010-12-14 Thread Marvin
Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at http://testbot.winehq.org/JobDetails.pl?Key=7587 Your paranoid android.

Re: oleaut32/tests: Better reflect the naming scheme

2010-10-20 Thread Alexandre Julliard
André Hentschel writes: > @@ -10,7 +10,7 @@ C_SRCS = \ > typelib.c \ > usrmarshal.c \ > varformat.c \ > - vartest.c \ > + variant.c \ > vartype.c Renaming tests should be avoided, it makes it hard to follow the history on test.winehq.org. -- Alexandre Julliard j

Re: oleaut32: Updated Norwegian translation.

2010-10-15 Thread Alexander Nicolaysen Sørnes
Fredag 15 oktober 2010 07:48:17 skrev Trygve Vea : > What is being changed here? Alexander N. Sørnes

Re: oleaut32/tests: added tests for negative fractional variant dates.

2010-10-02 Thread James McKenzie
On 10/2/10 7:00 PM, Jeremy Drake wrote: On Sat, 2 Oct 2010, James McKenzie wrote: Looks like you got 'bit' by the way that a finite storage method mangles floating information. There was a lengthy discussion on how to 'overcome' this on the Wine-Development list a short while ago. No, those

Re: oleaut32/tests: added tests for negative fractional variant dates.

2010-10-02 Thread Jeremy Drake
On Sat, 2 Oct 2010, James McKenzie wrote: > Looks like you got 'bit' by the way that a finite storage method mangles > floating information. There was a lengthy discussion on how to 'overcome' > this on the Wine-Development list a short while ago. No, those tests aleady account for that. /* Whe

Re: oleaut32/tests: added tests for negative fractional variant dates.

2010-10-02 Thread James McKenzie
On 10/2/10 10:13 AM, (Marvin) wrote: Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at http://testbot.winehq.org/JobDe

Re: oleaut32/tests: added tests for negative fractional variant dates.

2010-10-02 Thread testbot
Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at http://testbot.winehq.org/JobDetails.pl?Key=5729 Your paranoid android.

Re: oleaut32/tests: added tests for negative fractional variant dates.

2010-10-01 Thread Jeremy Drake
Oops, those empty parens () were intended to cite the URL for the article. Unfortunately, I can't seem to find it now. However, I found an MSDN page that describes the behavior I am testing here: http://msdn.microsoft.com/en-us/library/system.datetime.fromoadate.aspx This is actually documentatio

Re: oleaut32: Handle TKIND_COCLASS subtype for VT_PTR/VT_USERDEFINED.

2010-09-07 Thread Dmitry Timoshkov
Jan Ohlsen wrote: > + case TKIND_COCLASS: { > + ITypeInfo *pSubTypeInfo = NULL; > + TYPEATTR*tattr2 = NULL; > + GUID*iid = &(tattr->guid); Once you set tab size to 8 in your editor, or better will not use tabs at all, you will notice that

Re: oleaut32: Handle TKIND_COCLASS subtype for VT_PTR/VT_USERDEFINED.

2010-09-07 Thread Jan Ohlsen
On Mon, Sep 6, 2010 at 6:18 PM, Vincent Povirk wrote: > + // Use IID of the coclass' default > interface > > Don't use C++ comments. > > On Mon, Sep 6, 2010 at 10:31 AM, Jan Ohlsen > wrote: > > > > --- > > dlls/oleaut32/tmarshal.c | 69 > >

Re: oleaut32: Handle TKIND_COCLASS subtype for VT_PTR/VT_USERDEFINED.

2010-09-06 Thread Vincent Povirk
+ // Use IID of the coclass' default interface Don't use C++ comments. On Mon, Sep 6, 2010 at 10:31 AM, Jan Ohlsen wrote: > > --- >  dlls/oleaut32/tmarshal.c |   69 > ++ >  1 files changed, 69 insertions(+), 0 deletions(-)

Re: oleaut32: Remove the ignored common resource attributes.

2010-07-21 Thread testbot
Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at http://testbot.winehq.org/JobDetails.pl?Key=3687 Your paranoid android.

Re: oleaut32: be more explicit with locale dependent parsing of dates (try 2)

2010-04-15 Thread Nikolay Sivov
On 4/14/2010 23:56, André Hentschel wrote: Nikolay Sivov schrieb: On 4/14/2010 22:51, André Hentschel wrote: case 0x3: /* TTT TTTDD TTTDDD */ - if (iDate&& dp.dwCount == 3) + if (dp.dwCount == 3&& !strncmp(ShortDate,"dd.MM.yy",8)) case 0x1B

Re: oleaut32: be more explicit with locale dependent parsing of dates (try 2)

2010-04-14 Thread André Hentschel
Nikolay Sivov schrieb: > On 4/14/2010 22:51, André Hentschel wrote: >> case 0x3: /* TTT TTTDD TTTDDD */ >> - if (iDate&& dp.dwCount == 3) >> + if (dp.dwCount == 3&& !strncmp(ShortDate,"dd.MM.yy",8)) >> >> > >> case 0x1B: /* localized DDDTTT */ >> - if (!iDate) >> +

Re: oleaut32: be more explicit with locale dependent parsing of dates (try 2)

2010-04-14 Thread Nikolay Sivov
On 4/14/2010 22:51, André Hentschel wrote: case 0x3: /* TTT TTTDD TTTDDD */ - if (iDate&& dp.dwCount == 3) + if (dp.dwCount == 3&& !strncmp(ShortDate,"dd.MM.yy",8)) case 0x1B: /* localized DDDTTT */ - if (!iDate) + if (strncmp(ShortDate,"dd.MM.yy",8))

Re: oleaut32: be more explicit with locale dependent parsing of dates

2010-04-09 Thread Alexandre Julliard
André Hentschel writes: > @@ -7708,7 +7708,7 @@ HRESULT WINAPI VarDateFromStr(OLECHAR* strIn, LCID > lcid, ULONG dwFlags, DATE* pd >break; > > case 0x1B: /* localized DDDTTT */ > - if (!iDate) > + if (PRIMARYLANGID(lcid) != LANG_GERMAN) Obviously you cannot hardcode spe

Re: oleaut32: Use FADF_HAVEVARTYPE before FADF_RECORD for safearrays

2010-03-20 Thread Alistair Leslie-Hughes
A test case would be a good idea. After spending a consider amount of time trying to writing a test case, It always failed on an XP box. This patch would just hide the issue instead of truly fixing it. Best Regards Alistair Leslie-Hughes

re: oleaut32: Use FADF_HAVEVARTYPE before FADF_RECORD for safearrays

2010-03-18 Thread Dan Kegel
Can you write a test for that?

Re: oleaut32: Use FADF_HAVEVARTYPE before FADF_RECORD for safearrays

2010-03-18 Thread Alexandre Julliard
Alistair Leslie-Hughes writes: > Both FADF_HAVEVARTYPE and FADF_RECORD both store information at > negative 4 in the safearray, and ODBC(native MDAC) can attempt to copy > an array with both of these flags set. A test case would be a good idea. -- Alexandre Julliard julli...@winehq.org

Re: oleaut32: Return type mismatch errors in ITypeLibComp_fnBind.

2010-03-12 Thread Vincent Povirk
We may search multiple modules/types, and we shouldn't necessarily return the failure code of the last one we searched. If we ever get a type mismatch error, we should return that error, but the last result we get will most likely be "not found", or S_OK with a DESCKIND_NONE. (I'm not sure whether

Re: oleaut32: Return type mismatch errors in ITypeLibComp_fnBind.

2010-03-12 Thread Nikolay Sivov
On 3/12/2010 23:56, Vincent Povirk wrote: ITypeLibImpl *This = impl_from_ITypeComp(iface); ITypeInfoImpl *pTypeInfo; +int typemismatch=0; Do you really need this one? Looks like it's enough to move hr at top level and use it.

Re: oleaut32: Fix BSTR to DATE conversion

2010-03-04 Thread Alexandre Julliard
André Hentschel writes: > diff --git a/dlls/oleaut32/variant.c b/dlls/oleaut32/variant.c > index 450856f..4ed4f01 100644 > --- a/dlls/oleaut32/variant.c > +++ b/dlls/oleaut32/variant.c > @@ -85,6 +85,7 @@ static inline HRESULT VARIANT_Coerce(VARIANTARG* pd, LCID > lcid, USHORT wFlags, >HRESU

Re: oleaut32: Add a VT_INT_PTR case for VARIANT_UserSize

2010-03-02 Thread Nikolay Sivov
On 3/2/2010 19:31, Alexandre Julliard wrote: Nikolay Sivov writes: Unfortunately I don't have a 64bit to cross-build a test on it. Should it just be 4? or there's something more complicated? Most likely more complicated, test cases are probably in order. Ok, just tried with test

Re: oleaut32: Add a VT_INT_PTR case for VARIANT_UserSize

2010-03-02 Thread Alexandre Julliard
Nikolay Sivov writes: > Unfortunately I don't have a 64bit to cross-build a test on it. Should > it just be 4? or there's something more complicated? Most likely more complicated, test cases are probably in order. -- Alexandre Julliard julli...@winehq.org

Re: oleaut32: Add a VT_INT_PTR case for VARIANT_UserSize

2010-03-02 Thread Paul Vriens
On 03/02/2010 05:26 PM, Nikolay Sivov wrote: On 3/2/2010 19:21, Paul Vriens wrote: On 03/02/2010 05:16 PM, Nikolay Sivov wrote: On 3/2/2010 19:01, Alexandre Julliard wrote: Nikolay Sivov writes: @@ -239,6 +239,8 @@ static unsigned int get_type_size(ULONG *pFlags, VARTYPE vt) case VT_DISPATCH

Re: oleaut32: Add a VT_INT_PTR case for VARIANT_UserSize

2010-03-02 Thread Nikolay Sivov
On 3/2/2010 19:21, Paul Vriens wrote: On 03/02/2010 05:16 PM, Nikolay Sivov wrote: On 3/2/2010 19:01, Alexandre Julliard wrote: Nikolay Sivov writes: @@ -239,6 +239,8 @@ static unsigned int get_type_size(ULONG *pFlags, VARTYPE vt) case VT_DISPATCH: case VT_RECORD: return 0; + case VT_INT_PTR:

Re: oleaut32: Add a VT_INT_PTR case for VARIANT_UserSize

2010-03-02 Thread Paul Vriens
On 03/02/2010 05:16 PM, Nikolay Sivov wrote: On 3/2/2010 19:01, Alexandre Julliard wrote: Nikolay Sivov writes: @@ -239,6 +239,8 @@ static unsigned int get_type_size(ULONG *pFlags, VARTYPE vt) case VT_DISPATCH: case VT_RECORD: return 0; + case VT_INT_PTR: + return sizeof(INT_PTR); This won't

Re: oleaut32: Add a VT_INT_PTR case for VARIANT_UserSize

2010-03-02 Thread Nikolay Sivov
On 3/2/2010 19:01, Alexandre Julliard wrote: Nikolay Sivov writes: @@ -239,6 +239,8 @@ static unsigned int get_type_size(ULONG *pFlags, VARTYPE vt) case VT_DISPATCH: case VT_RECORD: return 0; +case VT_INT_PTR: +return sizeof(INT_PTR); This won't do

Re: oleaut32: Add a VT_INT_PTR case for VARIANT_UserSize

2010-03-02 Thread Alexandre Julliard
Nikolay Sivov writes: > @@ -239,6 +239,8 @@ static unsigned int get_type_size(ULONG *pFlags, VARTYPE > vt) > case VT_DISPATCH: > case VT_RECORD: > return 0; > +case VT_INT_PTR: > +return sizeof(INT_PTR); This won't do the right thing on 64-bit. -- Alexandre Jull

Re: oleaut32: Fix rounding

2010-02-11 Thread Alexandre Julliard
André Hentschel writes: > --- > dlls/oleaut32/tests/varformat.c | 10 -- > dlls/oleaut32/varformat.c |3 ++- > dlls/oleaut32/variant.c |2 +- > 3 files changed, 11 insertions(+), 4 deletions(-) It doesn't work: ../../../tools/runtest -q -P wine -M oleaut32.dll -

Re: oleaut32: rewrite RollUdate to be easier to change and to support more conversions

2010-02-01 Thread Alexandre Julliard
André Hentschel writes: > Old version of that function only used if-statements which is not the best > solution for a math problem. It doesn't work here: ../../../tools/runtest -q -P wine -M oleaut32.dll -T ../../.. -p oleaut32_test.exe.so vartest.c && touch vartest.ok vartest.c:1759: Test fa

Re: oleaut32: do not crash in logging if string is NULL

2010-01-20 Thread Alexandre Julliard
Aric Stewart writes: > Meaning the place where I am finding this is different bug? > > In deserialize_param in the VT_BSTR case if the byte_length of the > BSTR that we are deserializing is -1 then BSTR_UserUnmarshal places > NULL into *arg. > > I will admit I know very little about this code bu

Re: oleaut32: do not crash in logging if string is NULL

2010-01-20 Thread Aric Stewart
Aric Stewart wrote: Meaning the place where I am finding this is different bug? In deserialize_param in the VT_BSTR case if the byte_length of the BSTR that we are deserializing is -1 then BSTR_UserUnmarshal places NULL into *arg. I will admit I know very little about this code but having i

Re: oleaut32: do not crash in logging if string is NULL

2010-01-20 Thread Aric Stewart
Meaning the place where I am finding this is different bug? In deserialize_param in the VT_BSTR case if the byte_length of the BSTR that we are deserializing is -1 then BSTR_UserUnmarshal places NULL into *arg. I will admit I know very little about this code but having it crash when trying

Re: oleaut32: do not crash in logging if string is NULL

2010-01-20 Thread Alexandre Julliard
Aric Stewart writes: > @@ -68,10 +68,16 @@ typedef struct _marshal_state { > > /* used in the olerelay code to avoid having the L"" stuff added by > debugstr_w */ > static char *relaystr(WCHAR *in) { > -char *tmp = (char *)debugstr_w(in); > -tmp += 2; > -tmp[strlen(tmp)-1] = '\0'

Re: [oleaut32] StructArg tests cannot rely on an unpacked structure memcmp.

2009-10-24 Thread Jeremy White
Austin English wrote: > On Sat, Oct 24, 2009 at 5:13 PM, Jeremy White wrote: >> Has the side effect of preventing a test failure which occurs only when >> running with +heap. > > Woohoo! Should fix: > http://bugs.winehq.org/show_bug.cgi?id=14078 No; this patch doesn't address that particular Va

Re: [oleaut32] StructArg tests cannot rely on an unpacked structure memcmp.

2009-10-24 Thread Austin English
On Sat, Oct 24, 2009 at 5:13 PM, Jeremy White wrote: > Has the side effect of preventing a test failure which occurs only when > running with +heap. Woohoo! Should fix: http://bugs.winehq.org/show_bug.cgi?id=14078 http://bugs.winehq.org/show_bug.cgi?id=17412 -- -Austin

Re: oleaut32: Fail the typelib test when LoadTypeLib fails.

2009-09-16 Thread Jacek Caban
Hi Vincent, Vincent Povirk wrote: As far as I know, this failure only occurs when I do something stupid like set use_midl_tlb to 1 and don't provide a working midl_tmarshal.tlb, but I need the test to remind me that I'm an idiot when I do that. Silently skipping tests is unacceptable. W

Re: oleaut32: use WIC to decode JPEG images

2009-08-31 Thread Vincent Povirk
Of course it would probably help if I remembered to attach the patch. On Mon, Aug 31, 2009 at 5:08 PM, Vincent Povirk wrote: > This needs an updated prefix to work. > > > > -- Vincent Povirk

Re: oleaut32: Dynamic invocation for x86

2009-08-21 Thread Steven Edwards
On Fri, Aug 21, 2009 at 1:42 PM, Juan Lang wrote: > Ah, fair enough, and clearly oleaut32 belongs in that category.  Thanks. I should have said Windows as technically mingw is still __GNUC__ but you got the idea. -- Steven Edwards "There is one thing stronger than all the armies in the world, a

Re: oleaut32: Dynamic invocation for x86

2009-08-21 Thread Juan Lang
> There are a few instances of it, at least in code we care about > sharing with a mingw build Ah, fair enough, and clearly oleaut32 belongs in that category. Thanks. --Juan

Re: oleaut32: Dynamic invocation for x86

2009-08-21 Thread Steven Edwards
On Fri, Aug 21, 2009 at 12:31 PM, Juan Lang wrote: > We don't protect by __GNUC__ for any of our other assembly either, > even though it all uses GNU assembly syntax.  So personally I think > that part's okay. There are a few instances of it, at least in code we care about sharing with a mingw bui

Re: oleaut32: Dynamic invocation for x86

2009-08-21 Thread Juan Lang
Thanks for the review, Henri. > I don't know if there's a reason the general approach couldn't work, > but the code in the patch is gcc specific, so I think it should at > least be protected by __GNUC__ in addition to __i386__. We don't protect by __GNUC__ for any of our other assembly either, ev

Re: oleaut32: Dynamic invocation for x86

2009-08-21 Thread Henri Verbeet
2009/8/21 Juan Lang : > Personally, I don't think the cut-and-paste approach we've been taking > to fix this works all that well for a 126-argument function, so it > seems like an assembly approach is the only tenable method.  I'm not > certain whether Jon's approach is the correct one, but since i

Re: oleaut32: Build language resource files separately

2009-06-30 Thread Michael Stefaniuc
Alexandre Julliard wrote: > Michael Stefaniuc writes: > >> Well, Alexandre did the first patch for programs/clock >> http://source.winehq.org/git/wine.git/?a=commit;h=aa41526c73a5fbcc2c08a9342107ee76173a2b97 >> so it must be right ;). It increases the resilience as errors in one >> language rc fi

Re: oleaut32: Build language resource files separately

2009-06-30 Thread Michael Stefaniuc
Paul Vriens wrote: > Michael Stefaniuc wrote: >> Hello Nikolay, >> >> Nikolay Sivov wrote: >>> Michael Stefaniuc wrote: instead of including them from an other rc file. --- >>> What is the purpose of these changes? I'm not talking it's wring :), >>> just interested. >> Well, Alexa

Re: oleaut32: Build language resource files separately

2009-06-30 Thread Alexandre Julliard
Michael Stefaniuc writes: > Well, Alexandre did the first patch for programs/clock > http://source.winehq.org/git/wine.git/?a=commit;h=aa41526c73a5fbcc2c08a9342107ee76173a2b97 > so it must be right ;). It increases the resilience as errors in one > language rc file do not propagate to the other l

Re: oleaut32: Build language resource files separately

2009-06-30 Thread Paul Vriens
Michael Stefaniuc wrote: Hello Nikolay, Nikolay Sivov wrote: Michael Stefaniuc wrote: instead of including them from an other rc file. --- What is the purpose of these changes? I'm not talking it's wring :), just interested. Well, Alexandre did the first patch for programs/clock http://so

Re: oleaut32: Build language resource files separately

2009-06-30 Thread Nikolay Sivov
Michael Stefaniuc wrote: Hello Nikolay, Nikolay Sivov wrote: Michael Stefaniuc wrote: instead of including them from an other rc file. --- What is the purpose of these changes? I'm not talking it's wring :), just interested. Well, Alexandre did the first patch for prog

Re: oleaut32: Build language resource files separately

2009-06-30 Thread Michael Stefaniuc
Hello Nikolay, Nikolay Sivov wrote: > Michael Stefaniuc wrote: >> instead of including them from an other rc file. >> --- >> > What is the purpose of these changes? I'm not talking it's wring :), > just interested. Well, Alexandre did the first patch for programs/clock http://source.winehq.org/

Re: oleaut32/tests: Add some tests for [lcid] parameters.

2009-06-17 Thread Paul Vriens
Paul Vriens wrote: Huw Davies wrote: On Wed, Jun 17, 2009 at 03:58:33PM +0200, Paul Vriens wrote: Huw Davies wrote: --- dlls/oleaut32/tests/tmarshal.c | 53 +++- dlls/oleaut32/tests/tmarshal.idl |6 +++ dlls/oleaut32/tests/tmarshal_dispids.h |

Re: oleaut32/tests: Add some tests for [lcid] parameters.

2009-06-17 Thread Paul Vriens
Huw Davies wrote: On Wed, Jun 17, 2009 at 03:58:33PM +0200, Paul Vriens wrote: Huw Davies wrote: --- dlls/oleaut32/tests/tmarshal.c | 53 +++- dlls/oleaut32/tests/tmarshal.idl |6 +++ dlls/oleaut32/tests/tmarshal_dispids.h |1 + 3 files chang

Re: oleaut32/tests: Add some tests for [lcid] parameters.

2009-06-17 Thread Huw Davies
On Wed, Jun 17, 2009 at 03:58:33PM +0200, Paul Vriens wrote: > Huw Davies wrote: >> --- >> dlls/oleaut32/tests/tmarshal.c | 53 >> +++- >> dlls/oleaut32/tests/tmarshal.idl |6 +++ >> dlls/oleaut32/tests/tmarshal_dispids.h |1 + >> 3 files change

Re: oleaut32/tests: Add some tests for [lcid] parameters.

2009-06-17 Thread Paul Vriens
Huw Davies wrote: --- dlls/oleaut32/tests/tmarshal.c | 53 +++- dlls/oleaut32/tests/tmarshal.idl |6 +++ dlls/oleaut32/tests/tmarshal_dispids.h |1 + 3 files changed, 59 insertions(+), 1 deletions(-) --

Re: oleaut32: [Patch 1/2] VarCat must use localized names for VT_BOOL

2009-04-17 Thread Paul Vriens
Paul Vriens wrote: Detlef Riekenberg wrote: On Mi, 2009-04-15 at 13:37 +0200, Paul Vriens wrote: The lstrcpyW and lstrcatW additions to init() in the tests don't work on Win95. I guess that's where the new failures come from: I removed a "broken(hres == VARCMP_GT)", and that's what VarCmp

Re: oleaut32: [Patch 1/2] VarCat must use localized names for VT_BOOL

2009-04-17 Thread Paul Vriens
Detlef Riekenberg wrote: On Mi, 2009-04-15 at 13:37 +0200, Paul Vriens wrote: The lstrcpyW and lstrcatW additions to init() in the tests don't work on Win95. I guess that's where the new failures come from: I removed a "broken(hres == VARCMP_GT)", and that's what VarCmp on your w95 machine

Re: oleaut32: [Patch 1/2] VarCat must use localized names for VT_BOOL

2009-04-16 Thread Detlef Riekenberg
On Mi, 2009-04-15 at 13:37 +0200, Paul Vriens wrote: > The lstrcpyW and lstrcatW additions to init() in the tests don't work on > Win95. I guess that's where the new failures come from: I removed a "broken(hres == VARCMP_GT)", and that's what VarCmp on your w95 machine returned. My second Pat

Re: oleaut32: [Patch 1/2] VarCat must use localized names for VT_BOOL

2009-04-15 Thread Paul Vriens
Detlef Riekenberg wrote: http://test.winehq.org/data/f212579ae9a1b770ebd34cec20f95e1977bb57f0/xp_dr-asus/oleaut32:vartest.html While reading the code for a test failure on all of my Windows installations, the current code was already strange: 5436 ok(hres == VARCMP_EQ || 5437broken(

Re: oleaut32(2/3): Implement VarDecFix

2009-02-17 Thread Dmitry Timoshkov
"Juan Lang" wrote: > + hr = VarR8FromDec((DECIMAL *)pDecIn, &dbl); According to PSDK VarR8FromDec() takes a const pointer to the 1st parameter, to it should be fixed instead of casting const out. Same for VarDecInt() patch. -- Dmitry.

Re: oleaut32: Fix SAFEARRAY marshalling on 64-bit platforms.

2009-02-09 Thread Alexandre Julliard
Rob Shearman writes: > 2009/2/9 Alexandre Julliard : >> Rob Shearman writes: >> >>> @@ -874,8 +874,8 @@ unsigned char * WINAPI LPSAFEARRAY_UserMarshal(ULONG >>> *pFlags, unsigned char *Buf >>> >>> *(ULONG *)Buffer = ulCellCount; >>> Buffer += sizeof(ULONG); >>> -*(ULON

  1   2   3   >