Commit Graph

3170 Commits

Author SHA1 Message Date
Lawson Whitney d23cf08262 Fix off-by-one error in placing trailing \0. 2002-02-08 17:09:11 +00:00
Ori Pessach 023b1aae0a Set WS_EX_TOOLWINDOW in a tooltip's dwExStyle. 2002-02-08 17:03:57 +00:00
Aric Stewart 20a4cc3116 Don't return overflow if no class buffer was specified. 2002-02-05 19:45:55 +00:00
Rein Klazes 861d7c83c0 In X11DRV_ScrollDC only move pixels that are within the clip
rectangle, before and after they are scrolled.
2002-02-05 19:44:31 +00:00
Alexandre Julliard 7904acf1bd Authors: Guy L. Albertelli <galberte@neo.lrun.com>, Aric Stewart <aric@codeweavers.com>, Dmitry Timoshkov <dmitry@codeweavers.com>
Misc fixes:
- cache text metrics for the font we're using
- improved item hit detection
- more debugging output
- implement LVM_SETICONSPACING
- lots of bugs squashed
2002-02-05 18:13:57 +00:00
Marcus Meissner 0749fc2034 Implemented Local Server COM.
Implemented the Typelib based Marshaler.
2002-02-05 18:11:17 +00:00
Patrik Stridvall 395e8bafc4 MSVC compile fixes. 2002-02-05 18:09:29 +00:00
Dmitry Timoshkov 94d5cd4203 Remove PROGRESS_Refresh, always do InvalidateRect() to repaint.
Add WM_ERASEBKGND handler as in Windows.
Be slightly smarter whether invalidate background or not.
Always treat wParam as INT to not lose signed values.
2002-02-05 18:08:38 +00:00
Dimitrie O. Paun 07869ec403 Various cleanups:
- get rid of the static data member
- pass the infoPtr around instead of the hwnd
- fix indentatin/style a bit to make it consistent with the rest of
  the file.
2002-02-05 18:08:01 +00:00
Bill Medland afe92e8e8a Split the path and word/end ellipsification out of the main function
and do them thoroughly. The existing method would be incorrect where
tabs were involved and in some kerning situations.
2002-02-05 18:07:04 +00:00
Dimitrie O. Paun d15ed230a8 Complete Listview Unicodification.
Simplify the setting of (sub)item text by using common code.
2002-02-04 18:44:16 +00:00
Aric Stewart 9d366f1f40 Added implementation of SetItemW. 2002-02-04 18:37:32 +00:00
François Gouget d9c1fc339a Storing an IP address in a signed int results in bugs if it starts
with >=128.
2002-02-04 18:36:42 +00:00
Malte Starostik 4062cd924f Do not destroy ITypeLib held by ITypeInfo before the latter is freed. 2002-02-04 18:32:20 +00:00
Marcus Meissner a79dcc46eb VT_EMPTY can be coerced to VT_I4, value 0. 2002-02-04 18:31:53 +00:00
Dmitry Timoshkov ec7c2a80b2 Moved style correcting code to the WM_CREATE handler and added
clearing of WS_EX_CLIENTEDGE and WS_EX_WINDOWEDGE as in Windows.
Added SetWindowPos(SWP_FRAMECHANGED) to make changes take effect.
2002-02-04 18:31:17 +00:00
Guy L. Albertelli 75c2df8ede Fix problem exposed by the improvements in version 8b. Demonstrated by
OE 4.
2002-02-04 18:30:13 +00:00
Patrik Stridvall 57e5784c21 Move __stdcall/__cdecl to the right place. 2002-02-02 18:42:11 +00:00
Francois Gouget 62f083ce48 malloc.h is obsolete and stdlib.h should be used instead. 2002-02-02 18:16:25 +00:00
Bill Medland fdb799aa6a Ensure that the whole modified text is returned from DrawTextExA. 2002-02-02 18:14:35 +00:00
Alexandre Julliard 64781643dd Do not use the PEB lock as loader lock, use a separate critical
section for that (and for the graphics drivers).
2002-02-02 18:13:50 +00:00
Andreas Mohr 2295e87be8 Fixed some more missing parenthesis issues. 2002-02-02 18:06:03 +00:00
Huw D M Davies 83ff80b295 Flip A<->W conversion in dispinfo_notifyT. 2002-02-02 17:57:00 +00:00
Aric Stewart 5a64f285f2 Fix to GetItemW to stop whiping out the items text. 2002-02-01 19:54:10 +00:00
Guy Albertelli b10454965e Don't try to set fields in nonexistant lpLineCountryList.
Supply valid tapi codes.
2002-02-01 19:01:31 +00:00
Gerard Patel d6c7b62f59 Added missing parenthesis in ShGetFileInfoA. 2002-01-31 21:48:38 +00:00
Nog 867a874375 Fixed function 0xb. 2002-01-31 21:47:57 +00:00
Patrik Stridvall 5038c04efd Fixed some issues found by winapi_check. 2002-01-31 21:47:34 +00:00
Alexandre Julliard c72a9aa83e CodeWeavers
Minor fixes.
2002-01-31 21:05:05 +00:00
Alexandre Julliard 925d602766 CodeWeavers
Small fixes.
2002-01-31 21:01:35 +00:00
Guy Albertelli bb2eab5f79 - better trace output
- support string sent in by address, rather then index
- add FIXMEs for multiple image lists
- protect agains inexistent buttons
- call up to the DefWindowProc when erasing bkgnd when appropriate
2002-01-31 20:49:10 +00:00
Nog 30f307c4d0 Implement function 0xb (Read mouse motion counters) and 0xf (Set
mickey/pixel ratio).
2002-01-31 20:45:02 +00:00
Bill Medland 001e732c41 - Introduce a significant design decision.
- Recalculate the prefix location if ellipsification alters it.  This
  carefully does NOT emulate a Microsoft bug in which reprefixing is
  wrong when the first character removed by ellipsification is the one
  that would have been underlined (under Win98 at least).
2002-01-31 20:44:39 +00:00
Alexandre Julliard 362cb2c05b Authors: Dmitry Timoshkov <dmitry@codeweavers.com>, Eric Kohl <ekohl@codeweavers.com>
Implemented CheckTokenMembership and GetAce.
2002-01-31 20:44:02 +00:00
Gerard Patel 776cb279f2 Don't repaint header when scrolling a listview vertically. 2002-01-31 20:38:25 +00:00
Guy Albertelli 1cc881772c - fix order of parameters is SendNotify
- always use the dlg cntrl ID of the sender
2002-01-31 20:37:49 +00:00
Dmitry Timoshkov 1e55094e8a Added LdrDisableThreadCalloutsForDll. 2002-01-29 18:30:16 +00:00
Alexandre Julliard e1ff66a814 Authors: Aric Stewart <aric@codeweavers.com>, Huw D M Davies <hdavies@codeweavers.com>
Added stubs for CheckEscapes[AW] and ExtractAssociatedIconExW.
2002-01-29 18:21:20 +00:00
Eric Kohl e4d4f2d59f Added location of local application data. 2002-01-29 18:19:59 +00:00
Dmitry Timoshkov 263341484c Fixed RtlAddAccessAllowedAce return value. 2002-01-29 18:17:46 +00:00
Mike McCormack de5316b801 Added stubs for NdrDllCanUnloadNow and NdrDllGetClassObject. 2002-01-29 18:16:39 +00:00
Dmitry Timoshkov 000b180a11 Added GetComputerNameEx[AW] semi-stub. 2002-01-29 18:15:11 +00:00
Eric Kohl 5320a42a9c Added FindFirstUrlCacheEntry[AW] stubs. 2002-01-29 18:12:28 +00:00
Aric Stewart 71a081ca58 Added some MAPI stubs. 2002-01-29 18:10:53 +00:00
Aric Stewart c2a5ebc9e3 Added a pass-through msvcrt20. 2002-01-29 18:09:46 +00:00
Eric Kohl eba84bb564 Added Extract stub. 2002-01-29 18:03:36 +00:00
Eric Kohl 231f2594d2 Added ImmDisableIME stub. 2002-01-29 18:02:13 +00:00
Dmitry Timoshkov 08af06c183 Implemented _wmakepath. 2002-01-29 18:00:44 +00:00
Jukka Heinonen fd33517a41 Added support for DOS EMS memory. 2002-01-29 17:55:21 +00:00
Gerard Patel 815997ffe0 Fix problems with listview notification. 2002-01-29 17:51:00 +00:00
Dimitrie O. Paun 187a6795c4 - add new SetRange functions (instead of duplicating the code)
- pass the infoPtr around instead of the hwnd
- use W-functions instead of A-functions
- more checks in case of failures
- make indentation and style consistent throughout the file
2002-01-29 17:15:48 +00:00
Alexandre Julliard d328085efa Authors: Guy Albertelli <guy@codeweavers.com>, Mike McCormack <mike_mccormack@start.com.au>
Property sheet Unicodification.
Support additional wizard flags.
2002-01-29 17:14:53 +00:00
Charles Loep 02cbb360e8 Implemented ImageList_Write. 2002-01-29 17:12:20 +00:00
Guy Albertelli 9ef01a23c5 Eliminate some useless error messages. 2002-01-29 17:11:30 +00:00
Rein Klazes e2a55be486 Correct optlen when WS_setsockopt is called with SO_LINGER. 2002-01-29 17:06:11 +00:00
Huw D M Davies eb16e1b055 Weird thing with lcid of library is that if sublang is neutral then we
return the primary lang else we return 0.
2002-01-29 17:05:11 +00:00
Charles Loep 2b74e91df5 Fixed file extension problem in the file dialog. 2002-01-29 16:58:39 +00:00
Huw D M Davies 8ebf7c292f Removed IsBadStringPtrA call that caused trouble. 2002-01-29 16:56:48 +00:00
Charles Loep 2d783f70f5 Fix errors resulting from missing parenthesis. 2002-01-29 16:54:50 +00:00
Guy Albertelli 390c6dfb93 Text/Bkgnd color fixes. 2002-01-29 16:52:24 +00:00
Dimitrie O. Paun 6d694d8ed6 Simplify and fix listview ellipsification of large text labels. 2002-01-29 16:50:40 +00:00
Dimitrie O. Paun 693cca5d4d Make FIXMEs more grep-able. 2002-01-29 03:12:19 +00:00
Gerard Patel 3dbbb0b297 Avoid converting nonexistent text from A->W. 2002-01-29 03:08:24 +00:00
Huw D M Davies 6f7fc50424 Uses Xrender extension to allow client side font rendering.
Adds nice things like anti-aliased text.
2002-01-29 03:07:21 +00:00
Patrik Stridvall 74e4d21ebe Avoid wildcards in .cvsignore. 2002-01-29 03:05:12 +00:00
Alexandre Julliard 18d7573c5e Authors: Huw D M Davies <hdavies@codeweavers.com>, Charles Loep <charles@codeweavers.com>
Various fixes for gdi font handling code including:
- Using TTs VDMX table to ensure that we get exactly that same size
  font that Windows uses.
- Fixes to many members of the metrics structures.
- Font cache.
- Rotated text support.
- Support for GGO_GRAY?_BITMAP (ready for anti-aliased text).
- Support for GGO_NATIVE.
2002-01-29 03:02:50 +00:00
Andreas Mohr bfbe3b5c62 Fixed ==/!= mismatch. 2002-01-29 02:56:50 +00:00
Francois Gouget f885024344 Rename s_addr to src_addr to avoid a conflict on Solaris.
Rename d_addr to dst_addr for symmetry.
2002-01-29 02:55:24 +00:00
Nog 42a314dea6 Implement function number 0x5 (Return mouse button press information). 2002-01-29 02:51:47 +00:00
Guy L. Albertelli 5d93b6ede9 Fix PathCreateFromUrl{A|W} to return the corrrect error code in all
cases.
2002-01-29 02:47:46 +00:00
Guy L. Albertelli ce4f093def Fix SHRegOpenUSKey{A|W} and SHRegQueryUSValue{A|W} to actually use
previously open keys.
2002-01-29 02:47:17 +00:00
Jukka Heinonen a900cb8797 Low-resolution and low-color VGA modes are now mapped into mode
640x480x8. Added preliminary support for four bit modes.
2002-01-29 02:46:43 +00:00
Bill Medland a4605ac000 Put the prefix-underline-drawing away into it's own function so we can
see what is happening.
2002-01-29 02:46:09 +00:00
Bill Medland a51ff76b86 A couple of additions. 2002-01-29 02:44:44 +00:00
Marcus Meissner de46c22917 The \\<nr> magic in LoadTypeLibEx found directories, which was not
intended. Return error in that case.
2002-01-22 18:28:51 +00:00
Alexandre Julliard bd1689ec0a Don't include debugtools.h in the header file, moved it to the C files
that need it (and used the new wine/debug.h while we are at it).
2002-01-22 00:57:16 +00:00
Alexandre Julliard 18f4d651c5 Removed use of SET_DEBUGGING, it's broken anyway. 2002-01-22 00:54:20 +00:00
Uwe Bonnes e0ab2b7f2a Consistent usage of istring, use STR_[Get|Set]Ptr where appropriate. 2002-01-22 00:51:16 +00:00
Mark G. Adams a0324f7172 Add GetDefaultPrinter() functions. 2002-01-22 00:49:24 +00:00
Francois Gouget 7aa67c1d6a Make the Wine trace facilities accessible from Winelib applications. 2002-01-21 23:39:36 +00:00
Francois Gouget 5f30ee0651 Comment out/ifdef out unused code and variables. 2002-01-21 23:37:53 +00:00
Ove Kaaven 77e7fd7a24 Added support for MWM hints. 2002-01-21 18:41:27 +00:00
Francois Gouget 54697dd302 Print the strerror instead of just the errno. 2002-01-21 18:00:42 +00:00
Francois Gouget 0881f2048d Add missing cast. 2002-01-21 18:00:24 +00:00
Francois Gouget 8aceb00c52 Fix invalid C code (undefined behavior). 2002-01-21 18:00:05 +00:00
Francois Gouget e6ebf42c2b Fix a couple of warnings and a typo. 2002-01-21 17:59:38 +00:00
Eric Pouech 01ff68943d Fixed initialisation messages for raw DDE.
Fixed DdeCreateDataHandle for non NULL or CF_TEXT formats.
Various fixes (cosmetics, better error checking).
2002-01-18 19:30:15 +00:00
Eric Pouech 0faceb05fc Implemented interprocess DDE message posting. 2002-01-18 19:22:55 +00:00
Dimitrie O. Paun 9e99d2b763 - Make the ListView control Unicode ready.
- Support both ANSI & Unicode ListView notifications.
- Fixed a few bugs.
2002-01-18 19:05:35 +00:00
Aric Stewart 97b8c5704e Initialize streamData and check on failure to read desired data from
stream.
2002-01-18 19:04:39 +00:00
Patrik Stridvall 9ff202e65c Fixed some issues found by winapi_check. 2002-01-18 18:57:43 +00:00
Bang Jun-Young 8121e941a2 Fix NetBSD compile errors; CDIOCREADAUDIO is not available on NetBSD. 2002-01-18 18:11:04 +00:00
Uwe Bonnes ea881d25ff Added GradientFill stub. 2002-01-18 18:10:43 +00:00
Bill Medland 43471ddf0b CoGetClassObject: for CLSCTX_LOCAL_SERVER at least look up the server
in the registry, even though we don't yet execute it.
2002-01-18 18:09:37 +00:00
Bill Medland fcb8e0d77a - Don't string copy from uninitialised stack memory. In fact don't
modify the input string if it didn't change.
- Correct array size.
- Logically separate the centring from the ellipsification.
- Comment on prefix error.
2002-01-18 18:09:09 +00:00
Huw D M Davies 964109dec4 Stub for comctl32.419 2002-01-18 18:08:01 +00:00
Alexandre Julliard a3a1c84aca Added atom test script. 2002-01-15 20:59:22 +00:00
Aric Stewart ca2f40bd9a Catch maximum number of times and return out of memory error. 2002-01-15 20:43:05 +00:00
Rein Klazes 49762a3a50 Move the implementation of comctl32._TrackMouseEvent to
user32.TrackMouseEvent and call this function in accordance with the
specs.
2002-01-15 20:41:41 +00:00
Bill Medland fd59f34ec0 First stage of DrawText upgrade.
- Rearrange code into three distinct areas; DrawText, GrayString,
  TabbedText.
- Remove unused macros.
- Modify treatment of Tab arguments to fit with observed behaviour.
  e.g. DrawTextEx with DT_TABSTOP but null dtp will not take the
  setting from the flags.  Also only uses bits 15 to 8, not the
  higher bits.
2002-01-15 20:29:35 +00:00
Rein Klazes 26a5261a6f Don't check the checksum of the original echo request packet in the
received reply packet.
2002-01-15 20:28:34 +00:00
Huw D M Davies 1a65a7b88a Stubs for ImageList_[S|G]etFlags. 2002-01-15 20:28:05 +00:00
Michael C. Maggio f3b01aa790 Code used AF_IPX in some places where it should have used WS_AF_IPX. 2002-01-15 20:26:28 +00:00
Dmitry Timoshkov 588200fcee Force ordinal allocation start from 100 as in Windows. 2002-01-15 20:25:40 +00:00
Bill Medland e0939a4995 Leave IID check to the OleCreateFontIndirect, so that SFCF will handle
all the interfaces that OleCreate.. will.
2002-01-15 20:23:57 +00:00
Alexandre Julliard 9384184a11 Rewrote runtest in Perl so that it can be used on the Windows side.
Added options for include directories, debug level and target platform.
selection.
2002-01-14 19:56:46 +00:00
Daniel Walker 700f5abe4c - Added debugging.
- Transfer all relevant messages to the underlying edit control.
2002-01-14 19:44:07 +00:00
Marcus Meissner 4a29e1f11a Removed some useless wingdi.h includes. 2002-01-14 18:36:37 +00:00
Huw D M Davies 02873bbee6 Convert MRULists to Unicode. 2002-01-14 18:36:03 +00:00
Huw D M Davies da70148afb IShellFolder_BindToObject should respect riid. 2002-01-14 18:35:44 +00:00
Uwe Bonnes a8322d0b02 _stat: Better test for drive letter. 2002-01-14 18:35:21 +00:00
Francois Gouget aae77c6da2 Fix compilation errors on FreeBSD. 2002-01-14 18:34:34 +00:00
Daniel Walker 40491ecc62 Implemented WSAAccept(). 2002-01-14 18:33:44 +00:00
Guy Albertelli 404b9a5fb9 - Add additional TOOLBAR_CalcToolbar in a different path of Autosize.
- Remember and process WM_SETREDRAW messages.
- Process strings specificied in InsertButton{A|W}.
2002-01-14 18:33:17 +00:00
Guy Albertelli 935331f6da Fix a gripper issue and the adjustment of bands when RBBS_FIXEDSIZE
specified.
2002-01-14 18:32:42 +00:00
Eric Pouech f65c7d546d Now using the NT CD interface. 2002-01-13 01:46:12 +00:00
Eric Pouech 5cc6105b39 Changed the Wine internal cdrom interface to the NT model. 2002-01-13 01:44:00 +00:00
Alexandre Julliard 466b2b474a Updated debug channels. 2002-01-12 21:17:10 +00:00
Eric Pouech 738669a709 Fixed the wodReset implementation, internal messages priority, full
duplex code, wait algorithm for feeding the OSS buffer.
2002-01-12 21:15:08 +00:00
Huw D M Davies 3d683d5aef Fix off by one error in TOOLBAR_AddStringW. 2002-01-12 21:14:17 +00:00
Travis Michielsen 0f21ee8e0a Added crypt32.dll stub. 2002-01-10 19:41:11 +00:00
Travis Michielsen e8273d6056 Implement advapi32 portion of the CryptoAPI. 2002-01-10 19:29:40 +00:00
Eric Pouech d0d7764ac0 Fix potential memory issue. 2002-01-10 18:21:07 +00:00
Bill Medland dce7e5cf8e Comment only; error in Microsoft documentation. 2002-01-10 18:19:29 +00:00
Francois Gouget 8549821b7f Fix previous patch: the ws_sockaddr_u2ws return value was wrong.
Make ws_sockaddr_{ws2u,u2ws} static.
2002-01-10 18:18:43 +00:00
Alexandre Julliard 13b0c0915b Added rules for running tests. 2002-01-10 03:30:21 +00:00
Martin Wilck 65b7e64c1f Moved the functionality of WS_socket() to WSASocketA().
Made WSASocketA() account for WSA_FLAG_OVERLAPPED.
2002-01-09 21:17:16 +00:00
Paul Rupe 06ffc1aba3 Return length of WS_sockaddr structure in ws_sockaddr_u2ws. 2002-01-09 20:29:17 +00:00
Bill Medland 064972768d Fixed GetDocumentation a little. When called from RegisterTypeLib it
was leaving the Doc entry uninitialised, leading to page fault when
measuring it. Also ensure correct freeing of resources on failure.
2002-01-09 19:10:59 +00:00
Rein Klazes 0f2f2b34fa Move calling of CBT hooks from WIN_CreateWindowEx() to the driver. 2002-01-09 19:09:06 +00:00
Patrik Stridvall 19d66cc1f6 Fixed some issues found by winapi_check. 2002-01-07 21:16:46 +00:00
Mike McCormack 0964495bc4 - Don't use event flags with ReadFileEx and WriteFileEx.
- Use overlapped structure with WriteFile, since FILE_FLAG_OVERLAPPED
  is specified.
- Cancel overlapped operations in CloseComm.
2002-01-07 18:04:50 +00:00
Alexandre Julliard c77c4df35e Allocate debug_info structure at the same time as the TEB.
Removed the TEB cleanup service.
2002-01-07 18:03:14 +00:00
Alexandre Julliard 50c6b74a34 Added SIGNAL_Reset function. 2002-01-07 18:02:35 +00:00
Mark G. Adams 9aa54a9076 Fix UuidCreate() to not forget MAC address.
Remove {}'s from UuidToStringA() output.
Add UuidCreateSequential() function from Windows 2000.
2002-01-06 19:08:47 +00:00
Alexandre Julliard 7c822cc0dc Removed obsolete dosmod. 2002-01-06 18:38:45 +00:00
Marcus Meissner 908d33dc73 Change currency of the european Euro using countries to Euro. 2002-01-06 18:35:04 +00:00
Ove Kaaven a814c4ef08 DOS support restructure. The DOS virtual machine is now a set of
threads running within Wine's own address space, obsoleting the old
dosmod module.
2002-01-06 18:34:02 +00:00
Ove Kaaven 4eb0bebd90 Fixed vm86_enter race conditions. 2002-01-04 21:57:04 +00:00
Sander van Leeuwen fcc148b283 Never delete the font object received by WM_SETFONT. 2002-01-04 21:50:01 +00:00
Sander van Leeuwen 198f1e2f3e Fixed calls with wrong pointer: COMCTL32_Free(&lpttsi) should be
COMCTL32_Free(lpttsi).
2002-01-04 21:27:34 +00:00
Sander van Leeuwen 500c201b0a Fixed DC leak. 2002-01-04 21:26:56 +00:00
Alexandre Julliard 80a3bb4fc0 Removed LoadOEMResource from USER driver. 2002-01-04 18:27:41 +00:00
Dmitry Timoshkov 4e78461b5e Print FIXME() for not implemented NtQueryVolumeInformationFile. 2002-01-04 18:24:51 +00:00
Dimitrie O. Paun 6dc401e2e7 Remove a call to HEAP_strdupAtoW in the Color dialog. 2002-01-04 18:23:46 +00:00
Alexandre Julliard cc2d3826f1 Use DrawFrameControl instead of bitmaps in certain cases.
Moved remaining OEM bitmaps to user32 resources.
2002-01-03 02:35:23 +00:00
Marcus Meissner 6ea7932c80 Implemented CoTreatAsClass, simplified OleSetAutoConvert. 2002-01-03 02:34:09 +00:00
Ove Kaaven edb8bdb555 Handle the lpDirectory field of the LPSHELLEXECUTEINFO. 2002-01-03 02:33:51 +00:00
Alexandre Julliard 2cc54c8c49 Moved the OEM bitmaps that don't depend on the Wine look into the
user32 resources.
2002-01-02 21:49:23 +00:00
Ove Kaaven f250b6b5fa Further unified HAL and HEL mixing, and added some more intelligence
to prebuffering, with some basic prebuffer canceling support, to get
rid of mixing delays in Half-Life. Used a very small waveout buffer
queue in HEL mode, using a callback to queue additional buffers, to
get rid of playback delays in Half-Life. Fixed a couple of bugs.
2002-01-02 21:46:54 +00:00