Commit Graph

681 Commits

Author SHA1 Message Date
Alex Villacís Lasso 61761e2278 - Fix leftover negative sign in height parameter for transparent
bitmap.
- Properly announce whether bitmap is transparent in get_Attributes.
- GIF transparency is now palette-index based, instead of RGB based.
- Keep original bitmap and XOR mask separate, so that get_Handle
  returns original bitmap.
2005-04-13 15:18:02 +00:00
Daniel Remenak 4d7e99df93 Implemented VarIdiv. 2005-04-13 10:59:25 +00:00
Daniel Remenak 292b61f550 Return DISP_E_DIVBYZERO instead of crashing when asked to divide a
variant by zero.
2005-04-12 10:15:56 +00:00
Francois Gouget 6b10c324c5 Assorted spelling fixes. 2005-03-30 17:08:31 +00:00
Alex Villacís Lasso 7bfc29028a Initialize [orig|himetric][Width|Height] for PICTYPE_ICON case. 2005-03-30 10:21:30 +00:00
Alex Villacís Lasso 2612f61fff Fix failure to notice the use of a GIF palette index greater or equal
to 128 for transparency.
2005-03-29 18:57:15 +00:00
Marcus Meissner 41079866f7 Serialize NULL pointer interfaces correctly. 2005-03-29 13:06:44 +00:00
Marcus Meissner 4b5f3c61ad Fixed VT_BSTR|VT_BYREF marshalling.
Added VT_I4|VT_BYREF marshalling.
2005-03-29 11:29:11 +00:00
Marcus Meissner 89feaca290 Fixed ppvObject serializer (deref twice instead of once).
Actually pass back return value of remote call in type marshaller.
2005-03-28 10:00:49 +00:00
Mike Hearn edcbd13665 Fix BSTR tracing in the typelib marshaller. 2005-03-27 18:20:10 +00:00
Marcus Meissner c91df67f11 Format VT_UI1, VT_I1, VT_UI2, VT_I2 correctly. 2005-03-27 18:17:19 +00:00
Marcus Meissner e6260a3625 Added IDispatch::GetIDsOfNames() special case serializing.
Handle VT_PTR / NULL marshalling correctly.
2005-03-27 17:51:59 +00:00
Mike Hearn 9b79651579 Fix PARAMFLAG_FOUT typo in the tmarshaller. 2005-03-25 16:38:37 +00:00
Jakob Eriksson 9ed61de9a2 Get rid of HeapAlloc casts. 2005-03-24 21:01:35 +00:00
Alex Villacís Lasso 2dd3288c43 After Float->string conversion via sprintfW(), VarDecFromR[4|8] is
forced to use US locale for string->Decimal conversion, to agree with
sprintfW().
2005-03-24 19:03:14 +00:00
Francois Gouget 93416cdaf7 Assorted spelling fixes. 2005-03-23 13:15:18 +00:00
Jacek Caban 7ff344e20f Fixed vartype test. 2005-03-18 14:02:12 +00:00
Alexandre Julliard 232760ded0 Authors: Mike Hearn <mh@codeweavers.com>, Robert Shearman <rob@codeweavers.com>
- Implement VT_BYREF | VT_BSTR marshalling.
- Add more integer types for marshaling and unmarshaling.
- Implement VT_BYREF | VT_BSTR unmarshaling.
- Don't allocate memory for TKIND_DISPATCH/TKIND_INTERFACE
  unmarshaling as it will be lost in the success case and interferes
  with the failure case.
2005-03-14 10:09:11 +00:00
Robert Shearman ac23f2c810 Add outer unknown support for typelib marshaler. 2005-03-11 10:18:31 +00:00
Jacek Caban cf8b29f7e0 More implementation of IRecordInfo. 2005-03-09 11:43:55 +00:00
Jacek Caban 0f9c43d8a5 - Implemented GetRecordInfoFromTypeInfo and GetRecordInfoFromGuid.
- Beginnig implementation of IRecordInfo.
2005-03-07 19:22:48 +00:00
Maxime Bellengé 901bdbf2d1 Implements OleLoadPicturePath. 2005-03-04 12:30:26 +00:00
Francois Gouget fbb3343547 Assorted spelling fixes. 2005-03-02 13:53:50 +00:00
Jon Griffiths eb5bf7dd38 Documentation spelling fixes. 2005-02-25 14:07:56 +00:00
Huw Davies beea69c820 The typelib cache should take the typelib resource index into
account.
2005-02-22 19:30:16 +00:00
Jon Griffiths 743fb99a9f Use variant macros instead of accessing the union directly. 2005-02-22 14:54:01 +00:00
Vincent Béron 06d7cae4d7 Add a stub for OleLoadPicturePath(). 2005-02-21 18:36:06 +00:00
Mike Hearn 80380eaa32 Allow loading of builtin typelibs. 2005-02-21 18:34:41 +00:00
Alex Villacís Lasso c2292eefb5 Implement OleFontImpl_QueryTextMetrics. 2005-02-18 12:51:23 +00:00
Alex Villacís Lasso 18bfe6a095 Change SUBLANG_DEFAULT to SUBLANG_NEUTRAL for LANG_SPANISH in all
resources, so that Spanish locales other than Spain also use Spanish
resources.
2005-02-16 21:10:59 +00:00
Marcelo Duarte 574c0edabb Update the resources for Portuguese. 2005-02-14 11:12:30 +00:00
Marcus Meissner a34c23498f Check for overflows with ClrUsed. 2005-02-14 11:08:22 +00:00
Paul Vriens 19e86c7de3 Add WinXP to OaBuildVersion. 2005-02-08 12:56:50 +00:00
Mike Hearn 08dc15fa0a Return OLE automation build value as win2k by default. 2005-02-08 12:12:40 +00:00
Vincent Béron dff207d3ce Remove message telling users to copy native stdole32.tlb over as we
now provide it.
Better trace in LoadTypeLib.
Change debug messages type to reflect we provide stdole32.tlb.
2005-01-31 11:34:10 +00:00
Rein Klazes 26771be4da SafeArrayDestroy() returns success when called with a NULL
pointer. Added to the test cases.
2005-01-31 11:31:50 +00:00
Mike Hearn 64eac75fe4 - Change some FIXMEs to ERRs to reflect the fact that nothing needs
fixing.
- Fix some memory leaks on error paths in _marshal_interface.
2005-01-27 11:11:32 +00:00
Mike Hearn 6c093f39a4 Fix a typo, propagate errors better from inside the typelib
marshaller.
2005-01-26 19:42:17 +00:00
Robert Shearman ce5adcda15 - Move OLE automation interface registration to oleaut32.
- Add IRemUnknown to list of interfaces to register.
2005-01-25 19:03:30 +00:00
Alex Villacís Lasso d0bdb3888b Initialize temporary variants before calling VariantChangeTypeEx. 2005-01-25 18:57:43 +00:00
Rémi Assailly 6063b542aa char -> const char fixes. 2005-01-24 11:29:44 +00:00
Alex Villacís Lasso ed9a359402 When parsing an hex/oct integer value, copy value verbatim in VARIANT,
rather than a negated value. Add test case for this behavior.
2005-01-17 19:34:58 +00:00
James Hawkins ba92d2924a - Use Interlocked* instead of ++/-- in AddRef/Release.
- Use only stored result of Interlocked* in AddRef/Release.
- Expand TRACEs to display the ref count.
2005-01-14 16:02:20 +00:00
Alexandre Julliard 53526959e9 Another warning fix. 2005-01-10 12:31:06 +00:00
Alexandre Julliard dd8fccfe72 Avoid warnings. 2005-01-09 18:01:49 +00:00
Huw Davies d070d8fb46 The value of a packed VARIANT can be up to 1L << 26 - 1. 2005-01-09 18:00:32 +00:00
Paul Vriens 202b340a51 - use Interlocked* functions in AddRef and Release.
- store the result of the Interlocked functions and use only this.
2005-01-09 17:29:21 +00:00
Eric Pouech cf1d00bb08 Removed excessive statement (break after return or goto, not useful
break, not needed vars...)
2005-01-09 16:42:53 +00:00
Michael Stefaniuc 15a308a9d7 Do not check for non NULL pointer before HeapFree'ing it. It's
redundant.
2005-01-03 14:56:42 +00:00
Eric Pouech 89f5283432 Some missing const correctness fixes. 2005-01-03 14:50:12 +00:00
Huw Davies 273137cc2c Fix typelib generation of CARRAYs. 2004-12-27 17:19:26 +00:00
Michael Stefaniuc 5ad7d858e0 Do not check for non NULL pointer before HeapFree'ing it. It's
redundant.
2004-12-23 17:06:43 +00:00
Francois Gouget 6fb1a20020 Assorted spelling fixes. 2004-12-20 19:27:06 +00:00
Bill Medland 405abd5b06 Fully initialise the structure to prevent ill-defined behaviour. 2004-12-20 17:05:44 +00:00
Alexandre Julliard ddd2486e98 Expand the COPYTEST macro to avoid trouble with 64-bit types. 2004-12-17 19:13:24 +00:00
Huw Davies dcb25230e0 Fix comment to reflect reality and indeed the code. 2004-12-17 18:56:49 +00:00
Jon Griffiths f82272c92f Remove unneeded headers to reduce unneeded rebuilds. 2004-12-16 14:35:55 +00:00
Dmitry Timoshkov da10a46ca7 Add Russian translations. 2004-12-15 10:44:00 +00:00
Robert Shearman 67942791e2 Implement RPC_E_DISCONNECTED in proxies. 2004-12-14 11:44:11 +00:00
Eric Pouech 4056d7ef8c Fixed some errors in function prototypes. 2004-12-13 21:19:01 +00:00
Hans Leidekker 97b7e0dec7 Fix compilation with GCC 4. 2004-12-13 13:30:49 +00:00
Huw Davies 033276b687 Remove the remaining dependencies on internal structures from Invoke. 2004-12-09 11:36:27 +00:00
Huw Davies 3dc64fc541 GetTypeAttr should deep copy the typedesc. 2004-12-08 19:32:28 +00:00
Huw Davies 7a6c099921 Fix return value of GetVarIndexOfMemId. 2004-12-08 17:48:16 +00:00
Robert Shearman cd0970eb24 Make the DECIMAL_SETZERO macro take a DECIMAL instead of a DECIMAL* as
in the Microsoft headers and fix up the only caller.
2004-12-08 13:59:52 +00:00
Huw Davies 23ded07e63 Remove Invoke's dependence on the internal TLBFuncDesc structure.
Fix memory leaks in some failure cases.
2004-12-07 16:59:40 +00:00
Huw Davies 367d16931e GetFuncIndexOfMemId should respect invkind and return
TYPE_E_ELEMENTNOTFOUND if the function cannot be found.
2004-12-07 14:18:29 +00:00
Huw Davies 81768fe150 Allocate the TYPEATTR rather than copying it.
For a dual interface the dispinterface's cfuncs should include the
inherited functions, cbSizeVft should just be the size of IDispatch's
vtbl and we should strip TYPEFLAG_FOLEAUTOMATION.
2004-12-02 19:58:07 +00:00
Eric Pouech 0a258964c2 Const correctness fixes. 2004-11-30 21:38:57 +00:00
Jon Griffiths c50d8743fa Ensure DllCanUnloadNow is a truly void function, and give it a unique
name so it can be documented per-dll.
2004-11-30 17:40:51 +00:00
Alexandre Julliard 405568801e Removed a couple of no longer needed entries. 2004-11-19 18:28:05 +00:00
Walt Ogburn e5013299e0 In OlePictureImpl_Load, always use DIB_RGB_COLORS because no indexed
palette has been defined.
2004-11-09 20:02:25 +00:00
William Poetra Yoga H 30c5be395e Use COLOR_MENUBAR (instead of COLOR_GRADIENTINACTIVECAPTION) as the
upper limit in GetSysColor() validation.
2004-11-08 20:24:50 +00:00
Mike Hearn 45eba51461 Support assigning font objects to other font objects. 2004-11-06 03:49:18 +00:00
Ge van Geldorp b3f2c53155 Use only one .res file. 2004-10-27 00:47:53 +00:00
Alexandre Julliard 32457b4f5a Converted more of the (Un)RegisterTypeLib code to Unicode.
Factored out some common routines.
2004-10-22 22:09:09 +00:00
Mike McCormack 56fc9bfade Use Unicode functions in RegisterTypeLib. 2004-10-22 20:29:34 +00:00
Walt Ogburn f61786d444 VarParseNumFromStr: Keep zeros after decimal point, correctly keep
track of trailing zeros in a decimal number.
VarNumFromParseNum: Don't error on decimal expressions for zero.
2004-10-21 19:55:37 +00:00
Walt Ogburn 84c1f667ae Keep "trailing" zeros on whole number part of a decimal.
Add an example of this to tests.
2004-10-19 21:08:40 +00:00
Walt Ogburn f5c25e8067 Test that SafeArrayDestroyData keeps the pointer if FADF_STATIC is
set, nulls it otherwise.
2004-10-19 21:08:18 +00:00
Walt Ogburn bb313c9dbe SafeArrayDestroyData - keep pointer, don't destroy data if FADF_STATIC
is set.
2004-10-19 21:08:02 +00:00
Vincent Béron 4eeae1adb3 Fix some types problems. 2004-10-18 22:39:21 +00:00
Walt Ogburn ea1b58b560 Test zero exponents with and without signs. 2004-10-18 22:35:18 +00:00
Walt Ogburn d5cf83317e Allow exponents of zero (like "1.000E0") to parse
correctly. Previously, they caused DISP_E_TYPEMISMATCH.
2004-10-11 20:53:29 +00:00
Francois Gouget 486d020c1b Don't define COBJMACROS in objbase.h.
Update the Wine sources accordingly.
2004-10-07 03:06:48 +00:00
Francois Gouget 0f313d0d5d Fix the VarI4FromI2 API documentation. 2004-10-07 02:59:45 +00:00
Francois Gouget 67aa858a31 Assorted spelling fixes. 2004-10-05 18:15:29 +00:00
Huw Davies ddae24c50b Implement CreateDispTypeInfo. 2004-10-05 18:07:49 +00:00
Marcus Meissner 5539e288a6 Function return types cannot be const. 2004-09-27 20:33:27 +00:00
Joris Huizer 34cffce6f9 Ref count increment/decrement cleanup. 2004-09-24 01:16:53 +00:00
Huw Davies 76c5590bfb Don't trash the dst variant if we can't do the type conversion.
Add a test for this.
2004-09-22 19:12:18 +00:00
Alex Villacís Lasso 2d02afbc09 Partial implementation for OLEPictureImpl_Save. 2004-09-22 04:04:03 +00:00
Hans Leidekker 719a789792 Fix signed/unsigned comparison warnings. 2004-09-22 02:46:38 +00:00
James Hawkins 364822739f Use InterlockedDecrement and InterlockedIncrement instead of ++/--. 2004-09-21 00:25:03 +00:00
Marcus Meissner a6584f5eed SafeArrayGetElement on a VARIANT array does not free the previous
VARIANT in the passed pointer. Added testcase.
2004-09-20 19:11:48 +00:00
James Hawkins 2d044dd64b Use InterlockedDecrement and InterlockedIncrement instead of ++/--. 2004-09-16 19:08:23 +00:00
Alex Villacís Lasso 6df12bb338 Add de-interleaving for GIF images. 2004-09-16 19:07:42 +00:00
Marcus Meissner 00cf13a6e1 Autodetect libgif so extension and try to load it. 2004-09-14 19:27:58 +00:00
Alexandre Julliard 241a4c34b1 Get rid of the non-standard ICOM_THIS macro. 2004-09-09 21:03:58 +00:00
Robert Shearman 2a54aac7c5 - Make typelib marshaler thread-safe (problem reported by Aric
Stewart).
- Several small cleanups.
2004-09-07 20:42:26 +00:00
Francois Gouget 508d51e69c Remove bogus #define statement. 2004-09-07 19:33:23 +00:00
Alexandre Julliard 39a696a166 Removed some uses of the non-standard ICOM_THIS macro. 2004-09-06 20:34:29 +00:00
Francois Gouget 27ca26bcb1 Detect whether Visual Studio can cast __uint64's to floats and disable
the relevant tests if it cannot.
Fix a double to float literal conversion warning.
2004-09-02 20:05:55 +00:00
Francois Gouget d0f10ac268 Remove references to ICOM_THIS and WINE_UNUSED as they don't exist on
Windows.
Define COBJMACROS so we get the IRecordInfo_* macros.
2004-09-01 04:53:52 +00:00
Filip Navara ff5ecfd89a For non-overlapped writes the lpNumberOfBytesWritten parameter of
WriteFile mustn't be NULL.
2004-08-30 18:40:06 +00:00
Jacek Caban 124eb32ea7 Added Polish translation. 2004-08-30 18:38:27 +00:00
Jacek Caban ab4b5fbd70 Added suport for optional arguments in ITypeInfo::Invoke. 2004-08-27 19:10:47 +00:00
Jason Edmeades 9638e02d7d Ensure digits are printable characters from oleaut32 Format command. 2004-08-26 00:28:37 +00:00
Jacek Caban 3a2574e3cc Fix handling of VARIANT with VT_BYREF and null pointer in
VariantChangeTypeEx.
2004-08-25 00:38:59 +00:00
Robert Shearman 25b74d2cfe More safe array tests. 2004-08-24 18:42:53 +00:00
Alexandre Julliard f714b39762 Get rid of the no longer used ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
macro.
2004-08-23 19:39:48 +00:00
Alexandre Julliard 25e2a320a7 Don't define BEGIN_INTERFACE in unknwn.h. 2004-08-22 21:38:46 +00:00
Robert Shearman 93010bf32f Added implementation for IPersistPropertyBag_Load on OLEFont (based on
a patch by Alex Villacís Lasso).
2004-08-20 19:58:46 +00:00
Jacek Caban bf9f8da333 Ref counting fixes. 2004-08-19 20:29:16 +00:00
Alex Villacís Lasso e9b0ea1554 Add detection of graphic file header in picture load, treat it as
no-header case.
2004-08-18 20:53:09 +00:00
Alex Villacís Lasso d44027e206 Apply HIMETRIC transformation on icons, just like bitmaps. 2004-08-18 00:26:44 +00:00
Francois Gouget 08177d6d7b The Windows headers support for NONAMELESSUNION and NONAMELESSSTRUCT
is unusable. So don't force this mode. Instead check whether
NONAMELESSUNION and/or NONAMELESSSTRUCT are set (by the Wine headers)
and define custom access macros accordingly.
2004-08-13 19:49:53 +00:00
Alexandre Julliard 936198ce45 Moved ICOM_THIS_MULTI definition out of objbase.h and into the files
that use it.
2004-08-13 00:44:22 +00:00
Alexandre Julliard 48c4bb3c31 Get rid of the non-standard ICOM_VTABLE macro. 2004-08-12 23:00:51 +00:00
Alexandre Julliard 0467ce9fd7 Get rid of the non-standard ICOM_VFIELD macro. 2004-08-12 19:52:49 +00:00
Alexandre Julliard b459952144 Avoid some non-portable makefile constructs, and get rid of the
ALTNAMES variable.
2004-08-11 23:59:06 +00:00
Francois Gouget bf72af30d0 Modify widl to put the C COM macros inside an #ifdef COBJMACROS block
as is done in the Windows headers.
Add #define COBJMACROS where needed in Wine.
Fixes the compilation of the oleaut32/tests/olefont.c and
urlmon/tests/url.c conformance tests with the Windows headers.
2004-08-11 19:43:45 +00:00
Huw Davies e82dfab20f dlopen libungif and libjpeg. 2004-08-04 19:10:26 +00:00
Mike Hearn 6545d994af Disconnect the server object from the stub on stub destruction. 2004-07-30 18:43:27 +00:00
Henning Gerhardt 74cebde291 Translated some English resource files into German. 2004-07-12 19:55:59 +00:00
Mike McCormack 0394eeed8d Refcounting fixes. 2004-07-06 21:28:13 +00:00
Mike Hearn f349cbb72b Move variant code to its own debug channel. 2004-07-04 00:09:11 +00:00
Mike Hearn 3186bd2300 Make typelib marshaller safe for systems that don't allow executable
code on the heap, plug a leak of the assembly stub block.
2004-06-28 23:51:24 +00:00
Mike Hearn 163eb22bff Dump function return type in typelib traces, add trace support for
VT_HRESULT.
2004-06-28 20:31:39 +00:00
Mike Hearn e1d7def952 Change REFIID to IID* for stack declarations to avoid initializers
being discarded.
2004-06-28 20:30:29 +00:00
Mike Hearn 86cc2d54c7 - Don't ERR on a used connection being destroyed.
- Don't print an extra newline in the olerelay code.
2004-06-23 00:10:29 +00:00
Mike Hearn d440ca4a89 Fix typelib marshaller relaying, add a comment describing what it is,
don't print the ugly L"" parts of Unicode strings in the relay trace.
2004-06-17 23:03:26 +00:00
Robert Shearman bc06d4ba8e - Fix ref count on standard proxy creation.
- Release channel buffer in StdMarshal_UnmarshalInterface, since we no
  longer use it and the proxy should have taken a reference on it.
- Add a few comments.
2004-06-14 17:58:03 +00:00
Ivan Leo Puoti c01570cc33 Removed dcom link. 2004-05-29 00:22:38 +00:00
Alex Villacís Lasso a286a30ab7 Added stub for GetRecordInfoFromGuids. 2004-05-27 01:55:54 +00:00
Maxime Bellengé 426b02362b Correctly create the byte array of gif images to match what
CreateDIBitmap expects.
2004-05-10 19:56:34 +00:00
Jon Griffiths 0d1b4239fd Trace the system and user locales upon startup.
Print the returned string if VarDateChangeTypeEx fails.
2004-05-05 19:00:21 +00:00
Maxime Bellengé 90bcfdca87 - Fix palette creation.
- Fix upside down Gif.
- Add support for transparent Gif.
2004-05-04 02:53:48 +00:00
Jon Griffiths 89450e7cbd Implement VarDateFromUdateEx. 2004-04-30 18:32:58 +00:00
Jon Griffiths d275676215 Fix failures under win2k. 2004-04-27 23:30:10 +00:00
Jon Griffiths 309ed0641e Update VarXor,VarAbs,VarNot for all input types.
Test VarOr; fix a failure with later oleaut32 versions.
Speed up compilation by sharing failure strings.
2004-04-27 23:29:58 +00:00
Jon Griffiths befb3a9980 Implement VarOr.
Fixes for untested VarXor,VarAbs,VarNot input types.
2004-04-27 23:29:37 +00:00
Jon Griffiths 30febfc87c Test ClearCustData() and UINT->I4 conversion. 2004-04-23 21:31:37 +00:00
Jon Griffiths 0c93b1f0a7 Implement ClearCustData. 2004-04-23 21:31:16 +00:00
Jon Griffiths 17ac230bbf Check the correct param for 2 DECIMAL operations. 2004-04-23 21:30:32 +00:00
Jon Griffiths 9b609135e1 Conversion from VT_UINT to VT_I4 ignores overflow. 2004-04-23 21:29:49 +00:00
Chris Morgan 58dcfb6205 Skip over most of the unused variant types to speed up the variant
tests.
2004-04-23 02:40:30 +00:00
Francois Gouget 8fc374d8b4 Make Unicode strings 'static const'. 2004-04-20 02:14:00 +00:00
Francois Gouget 52c0832161 Make Unicode strings static const. 2004-04-20 01:12:17 +00:00
Francois Gouget ebf0eb3138 Make static Unicode strings const. 2004-04-20 00:34:52 +00:00