Commit graph

16174 commits

Author SHA1 Message Date
Gé van Geldorp
6dd32969d0 Sync to Wine-20050725:
Phil Krylov <phil@newstar.rinet.ru>
- Added some useful TRACEs.
- Allow NULL parameter for WM_SETTEXT in RichEdit.
- Implemented EM_LINELENGTH RichEdit message.
- Fixed EM_LINEINDEX handler and added EM_LINEFROMCHAR handler.
- Implemented EM_EXLINEFROMCHAR, EM_LINEINDEX, EM_FINDTEXT,
  EM_FINDTEXTW, EM_FINDTEXTEX, and EM_FINDTEXTEXW messages.
- Fixed a comment about EM_STREAMIN.
- Implemented EM_GETLINECOUNT RichEdit message.
- Fixed EM_GETCHARFORMAT for selection containing a single character.
- Fixed an off-by-one error in EM_GETLINECOUNT handler.
- Fixed an off-by-one error in EM_STREAMOUT handler for non-Unicode
  plain text output.
- Fixed another couple of EM_STREAMOUT bugs.
- Removed junk from UTF-8 RTF output.
- Added emulation of RichEdit 1.0 behaviour when the 1.0 window class is
  being used. This emulation (introduced in M$ RichEdit 3.0) counts
  paragraph endings as 2 characters (CR+LF) instead of 1 (CR).
- Added EM_GETZOOM and EM_SETZOOM RichEdit message handlers.
- Added some missing but useful items to the TODO list.
Felix Nawothnig <felix.nawothnig@t-online.de>
- Check structure size and fix return values in EM_GETCHARFORMAT.
Aric Stewart <aric@codeweavers.com>
- Implementation for EM_GETTEXTEX.
Daniel Remenak <dtremenak@gmail.com>
- Basic handling of EM_SETTEXTEX.
Stefan Huehner <stefan@huehner.org>
- Make functions static to fix -Wmissing-declarations warnings.
- Change some char* to const char* to fix warnigns.
- Make some function static.
- Fix -Wmissing-declarations warnings.

svn path=/trunk/; revision=17335
2005-08-12 17:41:40 +00:00
Gé van Geldorp
e97f6fb328 Sync to Wine-20050725:
Mike McCormack <mike@codeweavers.com>
- gcc 4.0 -Wpointer-sign fixes (Reg* functions).

svn path=/trunk/; revision=17334
2005-08-12 17:34:06 +00:00
Gé van Geldorp
a48a2273ec Sync to Wine-20050725:
Huw Davies <huw@codeweavers.com> for Mandriva
- Cope with the index in a import table entry being a typeinfo index
  rather than a guid offset.
Robert Shearman <rob@codeweavers.com>
- Document active object and variant functions.
- Rename OLEAUT32_Dll* Functions to Dll*.
- IRpcStubBuffer_Disconnect can be called multiple times.
- Release TypeLib when freeing stub buffer.
- Fix confusion between number of characters and number of bytes in
  unmarshaling BSTRs. Convert it all to characters for consistency with
  the BSTR_User* routines.
- Marshal and unmarshal TKIND_ENUM and TKIND_ALIAS.
- Fix VT_BYREF|VT_UNKNOWN return values by comparing the correct value
  with VT_UNKNOWN and VT_DISPATCH.
- Better tracing.
- Return DISP_E_EXCEPTION from ITypeInfo_Invoke on an error in the
  called function.
- Remove RegisterTypeLib hack.
- Support VT_BYREF|VT_I4 in _copy_arg.
- Activate ITypeLib, ITypeInfo and IEnumVARIANT Marshalers.
Alex Villacis Lasso <a_villacis@palosanto.com>
- Fix GIF palette allocation, by relying on ColorCount instead of
  SColorResolution.
- Ensure that underflowing negative float is represented as a positive
  0, just as native oleaut32.
Alexandre Julliard <julliard@winehq.org>
- Get rid of cursoricon.h.
Mike McCormack <mike@codeweavers.com>
- gcc 4.0 -Wpointer-sign fixes (Reg* functions).
- Interlocked LONG* gcc warning fixes.
Stefan Huehner <stefan@huehner.org>
- Fix some more -Wmissing-declarations warnings.
Robert Shearman <rob@codeweavers.com> for Mandriva
- Add a generic TYPEDESC VT to VARIANT VT mapper so we can use the
  standard Variant* routines. Use this new function to properly copy &
  de-reference the return value.
- Conversions between variants types of the same size should ignore
  overflows.
- Tests for this behaviour.

svn path=/trunk/; revision=17333
2005-08-12 17:30:09 +00:00
Gé van Geldorp
7835b350bb Sync to Wine-20050725:
Robert Shearman <rob@codeweavers.com>
- Marshal return value from IRemUnknown_RemQueryInterface.
- We should be starting with 1 reference.
- IRpcStubBuffer_Disconnect can be called more than once.
- Silence now noisy error messages caused by changes in the way we call
  ipid_to_stubmanager. Move the error message to the one place it is
  needed.
- By-pass the RPC runtime if possible when calling an STA by posting a
  message directly to the apartment window for it to process. Fixes a
  deadlock in InstallShield caused by having to create a thread when
  freeing an object that comes from an STA apartment. Added tests that
  fail without this fix.
- Hack around broken state management so InstallShield works.
- Delete the stub manager outside of the apartment critical section
  because the deletion may require the object to re-enter the
  apartment.
- Always query for the correct stub interface, otherwise we will be
  pointing to the completely wrong object when a proxy does a
  queryinterface.
- Remove assumption that the stub buffer will handle the lifetime of
  the object.
Alex Villacis Lasso <a_villacis@palosanto.com>
- Initialize RegisteredClass properly in CoRegisterClassObject to
  prevent crash in CoRevokeClassObject when accessing (uninitialized)
  pMarshalledData.
Mike McCormack <mike@codeweavers.com>
- Fix gcc 4.0 -Wpointer-sign warnings.
Vitaly Lipatov <lav@etersoft.ru>
- Added some documentation.
Stefan Huehner <stefan@huehner.org>
- Fix some missing-declarations warnings.
Marcus Meissner <meissner@suse.de>
- 16bit interfaces are cdecl, so drop the WINAPI.
- 16bit COM interfaces are cdecl, not WINAPI.
- OleInitializeWOW gets 2 arguments.
- Added OleSetMenuDescriptor16 stub.
Marcus Meissner <marcus@jet.franken.de>
- Implemented IsValidInterface16, CoMemAlloc.
  Added debug to HGLOBALLockBytes16_QueryInterface.

svn path=/trunk/; revision=17332
2005-08-12 17:19:46 +00:00
Gé van Geldorp
5b9aceccd3 Sync to Wine-20050725:
Robert Shearman <rob@codeweavers.com>
- In MsiLocateComponent pcchBuf can be NULL so don't try to dereference
  it.
Alexandre Julliard <julliard@winehq.org>
- Use the official names for the Unicode string constants.
Aric Stewart <aric@codeweavers.com>
- Implement MsiGetLanguage.
- Relocate the msi file to prevent cd locking, corrected to properly not
  try to relocated #nnnn handles as files.
- Use the SourceList functions to get the source path in
  ConfigureProductExW.
- Handle installs off multiple volumes and properly pull the prompt
  string from the error table.
- If MsiGetProperty(A/W) is called with a NULL for the value buffer but
  a value in the size for the value buffer, then Msi fills in the size
  of the value into the pointer for size.  This is tested and confirmed
  with native MSI.
- Bail out if the reg key is empty. This prevents us from writing
  garbage to the property table.
- Properly resize the buffer based on ERROR_MORE_DATA.
  Also remember to free the allocated buffer.
- Further testing shows that when CustomActionData needs to be blank it
  is an empty string not ' '.
- Correct an error where I was not properly advancing a pointer.
- Add source.c to start handling the various MsiSourceList apis used in
  v3 of MSI, and now internally.
- Update files.c to use the MsiSourceList apis to make sure our
  SourceList keys in the registry are included and correct.
- Use the strings defined in msi.h.
- Use SOURCEDIR instead of PackagePath. Because the PackagePath may be
  local, while SOURCEDIR is more proper and will be a full directory.
- InstallShield does a number of actions using DoAction before the
  Install starts so the PackageCode needs to be loaded on OpenPackage
  instead of the beginning of the install process.
- When working toward install on demand support we need to reset all the
  constant values so that multiple install process do not get confused
  by leftover values from the previous install.
- Fill and use the ProductCode part of the MSIPACKAGE structure.
- Add the string constants located in msi.h and make use of them in
  files.c and source.c.
- Keep track of what sequence we are in and register unique
  actions. This allows us to make sure actions and custom actions
  flagged to run only once, actually run only once.
- Also clean up some of the numeric constants in custom.c using the
  defined values from msidefs.h.
Mike McCormack <mike@codeweavers.com>
- gcc 4.0 -Wpointer-sign fixes.
- Display icons in buttons that have them.
- Use LoadImage to load bitmaps and icons.
- Set the initial focus on the control specified by Control_First in the
  Dialog table.
- Move to the next mask edit field when the current one becomes full.
- Make the tab order in msi dialogs right.
- Don't crash when cancelling out of a modeless dialog.
- Stop the install when cancelling from a modeless dialog.

svn path=/trunk/; revision=17331
2005-08-12 17:07:28 +00:00
Gé van Geldorp
caa4e5c6ee Sync to Wine-20050725:
Mike McCormack <mike@codeweavers.com>
- gcc 4.0 -Wpointer-sign fixes (Reg* functions).

svn path=/trunk/; revision=17330
2005-08-12 16:59:41 +00:00
Royce Mitchell III
32ca0b0274 check for failure of vfatAttachFCBToFileObject() during file creation
svn path=/trunk/; revision=17328
2005-08-12 16:49:04 +00:00
Gé van Geldorp
25afeebf54 Sync to Wine-20050725:
Huw Davies <huw@codeweavers.com>
- Add English neutral version of IDS_COLOR_GRAY.
Eugeny Gorelov <tft@etersoft.ru>
- Implement most functionality of PageSetupDlg function.
Michael Jung <mjung@iss.tu-darmstadt.de>
- Don't expand MyComputer in the file dialogs without user interaction,
  if unixfs is rooted at desktop.
Henning Gerhardt <henning.gerhardt@web.de>
- Update German resource files.
Vincent Beron <vberon@mecano.gme.usherb.ca>
- Remove multiple declarations of the same function, keeping the public
  one as reference.
Mike McCormack <mike@codeweavers.com>
- gcc 4.0 -Wpointer-sign fixes.
- Fix declarations.

svn path=/trunk/; revision=17327
2005-08-12 16:47:29 +00:00
Gé van Geldorp
e98f97ee9f Sync to Wine-20050725:
Vitaliy Margolen <wine-patch@kievinfo.com>
- Send CDDS_ITEMPOSTERASE | CDDS_PREPAINT notify.
Felix Nawothnig <felix.nawothnig@t-online.de>
- Move DPA and DSA functions out of comctl32undoc.c as they are
  documented by now.
- Fix some DPA functions so they pass the new tests.
- Don't invalidate the whole propsheet when the page is switched.
Dimi Paun <dimi@lattica.com>
- Silence uninitialized warnings.
Robert Shearman <rob@codeweavers.com>
- Call SetBkMode with the correct value from the NMTBCUSTOMDRAW
  structure.
- Don't fill the NMTBCUSTOMDRAW structure in again for
  CDDS_POSTPAINT.
- Remove redundant bBtnTransprnt value.
- Height is now calculated based on the number of rows, not on the
  bounding rect.
- Only call CalcToolbar in AutoSize if it has TBSTYLE_WRAPABLE or
  TBSTYLE_EX_UNDOC1 set.
- Remove a bad test in SetButtonWidth that fixes a regression from the
  above change in IE.
- Remove unnecessary nHeight data.
- Remove duplicated code in Size by calling AutoSize.
- Remove unnecessary bAutoSize value because SetWindowPos doesn't
  generate WM_SIZE when there is nothing to do on both Windows and
  Wine.
- TBSTATE_INDETERMINATE only takes effect if the button is enabled,
  otherwise it should just appear like any other disabled button.
- Native autosizes on inserting/adding buttons, so we should too.
- The IsValidImageList test is not needed because if it isn't a valid
  image list we will have set the bitmap width and height to 1 and it
  does the wrong thing when no buttons are present.
- The calculated button height should include the text height when no
  buttons are present.
- Handle CopyImage and other functions failing by not adding the icon
  and notifying the caller.
Thomas Weidenmueller <wine-patches@reactsoft.com>
- Support PSH_WIZARDHASFINISH in wizards.
- Correct tab order of the wizard buttons.
- Support PSM_IDTOINDEX.
Aric Stewart <aric@codeweavers.com>
- When adding an image copy the full previous buffer.
- Implement replacing an icon with one from a resource.
Kevin Koltzau <kevin@plop.org>
- Forward some header notifications to parent of listview.
Frank Richter <frank.richter@gmail.com>
- Enabled "tab" dialog texture for property sheet pages.
- Add theming support for header controls.
- Use theming for the ListView non-client area.
- Let property sheets update the cached system colors upon receiving
  WM_SYSCOLORCHANGE.
- Add theming for the up/down control.

svn path=/trunk/; revision=17326
2005-08-12 16:31:56 +00:00
Emanuele Aliberti
420b109b72 Make the 'rosky' optional module compile.
svn path=/trunk/; revision=17325
2005-08-12 13:46:36 +00:00
Emanuele Aliberti
d12532191d Add 'rosky' module.
svn path=/trunk/; revision=17324
2005-08-12 12:31:33 +00:00
Emanuele Aliberti
6d095fd4bb CSR Reloaded... well, split.
- almost do-nothing base source code for new CSR server DLLs host
- base source code for the core CSR server DLL 'csrsrv.dll' (server 0)
- base source code for the base WIN server DLL 'basesrv.dll' (server 1)
- base source code for the console+user WIN server DLL 'winsrv.dll' (servers 3 and 2)


NOTES
- At present, nothing works, but compilation is OK, sorry.
- The program is temporarily named 'csr.exe' to coexist with current monolithic 'csrss.exe'.
- Code, hints, suggestions, and migration plans welcome! (post 0.3)

svn path=/trunk/; revision=17323
2005-08-12 12:22:02 +00:00
Hartmut Birr
65c59875e1 Set the process exit status.
svn path=/trunk/; revision=17322
2005-08-12 12:10:33 +00:00
Hartmut Birr
ed43d4bddd Fixed compilation.
svn path=/trunk/; revision=17321
2005-08-11 21:56:28 +00:00
Emanuele Aliberti
af7edaaf75 Minor changes to some API signatures.
svn path=/trunk/; revision=17320
2005-08-11 21:46:37 +00:00
Hervé Poussineau
0c6db72406 Input parameter in FSCTL_GET_RETRIEVAL_POINTERS is really a STARTING_VCN_INPUT_BUFFER structure (even if it contains only a LARGE_INTEGER)
svn path=/trunk/; revision=17319
2005-08-11 21:29:37 +00:00
Hervé Poussineau
733f1ba80d BYTE -> UCHAR. Thanks Alex
svn path=/trunk/; revision=17318
2005-08-11 21:25:28 +00:00
Hervé Poussineau
b8cfafc6b8 Add STARTING_LCN_INPUT_BUFFER and VOLUME_BITMAP_BUFFER structures
Remove #pragma pack/pop around RETRIEVAL_POINTERS_BUFFER as it should be standard-packed according to Alex.

svn path=/trunk/; revision=17317
2005-08-11 21:20:42 +00:00
Gé van Geldorp
67b5536716 Revert last Wine sync to pidl.c, since it breaks SHGetPathFromIDListW. Fixes
bug 697

svn path=/trunk/; revision=17316
2005-08-11 21:09:56 +00:00
Filip Navara
2967654c88 Implement NdisAllocatePacketPool by calling NdisAllocatePacketPoolEx.
svn path=/trunk/; revision=17315
2005-08-11 20:48:55 +00:00
Hartmut Birr
6e338ed990 Replaced _WINBASE_ by _WINBASE_H because some headers depends on _WINBASE_H.
svn path=/trunk/; revision=17314
2005-08-11 20:48:55 +00:00
Eric Kohl
7b869f437f The RpcFinally block must always be executed. Otherwise, RPC code will leak allocated buffer memory.
svn path=/trunk/; revision=17313
2005-08-11 20:45:41 +00:00
Hartmut Birr
e9beb0d3eb Moved the pragma to the correct position.
svn path=/trunk/; revision=17312
2005-08-11 20:44:04 +00:00
Emanuele Aliberti
3119900771 A more likely demo VMS server (it should not block, because it is chain-called from the listenig thread in csrsrv.dll.
svn path=/trunk/; revision=17311
2005-08-11 20:43:24 +00:00
Hartmut Birr
749cee8834 Use GetLocalTime instead of GetSystemTime.
svn path=/trunk/; revision=17310
2005-08-11 20:41:20 +00:00
Hartmut Birr
f17e695843 Don't query on batch files.
svn path=/trunk/; revision=17309
2005-08-11 20:39:28 +00:00
Hartmut Birr
d921a7ca15 Clear the memory after we know that the buffer was allocated.
svn path=/trunk/; revision=17308
2005-08-11 20:37:09 +00:00
Hartmut Birr
20731f1883 - Implemented MEMORY_AREA_PEB_OR_TEB and MEMORY_AREA_PAGED_POOL for MiQueryVirtualMemory.
- Fixed the range check in ProbeForRead and ProbeForWrite.

svn path=/trunk/; revision=17307
2005-08-11 20:35:00 +00:00
Hartmut Birr
b4315630d7 - Removed the hole pool allocation, because it needs to much memory and ros will not boot.
- Allocate short blocks in one page.  
- Split the used and free header. It makes it easier to implement a red zone check.

svn path=/trunk/; revision=17306
2005-08-11 20:29:08 +00:00
Hartmut Birr
bae5d406c1 Fixed a debug message.
svn path=/trunk/; revision=17305
2005-08-11 20:23:13 +00:00
Hartmut Birr
312f880b0f Reenabled a debug message.
svn path=/trunk/; revision=17304
2005-08-11 20:18:24 +00:00
Hartmut Birr
2d99925f41 Implemented (copied from NdisAllocatePacketPool) NdisAllocatePacketPoolEx.
svn path=/trunk/; revision=17303
2005-08-11 20:16:03 +00:00
Hervé Poussineau
41890ed14b Remove debug output and some useless code
Replace false by FALSE

svn path=/trunk/; revision=17302
2005-08-11 20:13:26 +00:00
Hervé Poussineau
d240d7dec7 Add DIF_* codes 40 to 42.
Reformat the whole list to align values

svn path=/trunk/; revision=17301
2005-08-11 20:13:16 +00:00
Hervé Poussineau
42551c5494 Move usb controllers and cdrom classes parameters to their own .inf files. They would be regenerated during 2nd stage setup
Fix a typo in mouse.inf

svn path=/trunk/; revision=17300
2005-08-11 20:13:06 +00:00
Hartmut Birr
ad52723693 Initialized the cnt value of the file structure.
svn path=/trunk/; revision=17299
2005-08-11 19:52:33 +00:00
Hartmut Birr
dbabadad17 Defined DbgPrint.
svn path=/trunk/; revision=17298
2005-08-11 19:49:47 +00:00
Hartmut Birr
b393d573db Fixed the loading of the global flag.
svn path=/trunk/; revision=17297
2005-08-11 19:46:39 +00:00
Hartmut Birr
8b3fa3e5d1 - Open the BaseNamedObjects directory case insensitive.
- Interpret INVALID_HANDLE_VALUE for the console handle as NULL.

svn path=/trunk/; revision=17296
2005-08-11 19:44:36 +00:00
Hartmut Birr
52f95df613 Honour the inheritance of a handle if it would be duplicated or opened.
svn path=/trunk/; revision=17295
2005-08-11 19:37:29 +00:00
Hartmut Birr
7faccfa7bb Call the registered exit functions if the dll is unloaded.
svn path=/trunk/; revision=17294
2005-08-11 19:32:02 +00:00
Hartmut Birr
d85fe524ac Fixed some problems if special parameters are delivered like SL_RESTART_SCAN, SL_INDEX_SPECIFIED or SL_RETURN_SINGLE_ENTRY.
svn path=/trunk/; revision=17293
2005-08-11 19:11:17 +00:00
Hartmut Birr
2acde8450d Implemented IRP_MJ_QUERY_VOLUME_INFORMATION/FileFsDeviceInformation. Msvcrt needs to detect the device type.
svn path=/trunk/; revision=17292
2005-08-11 19:07:11 +00:00
Hartmut Birr
77b9c0a70d Reimplemented FindFirstFileEx and removed some overhead.
svn path=/trunk/; revision=17291
2005-08-11 19:02:31 +00:00
Gé van Geldorp
9bfc144257 Sync to Wine-20050725:
Francois Gouget <fgouget@free.fr>
- Assorted spelling fixes.
Gerold Jens Wucherpfennig <gjwucherpfennig@gmx.net>
- Support for big-endian systems.
- The fci_get_little_endian... and fci_set_little_endian... functions
  don't really set and unset little endianes, they do the same thing:
  merely swapping bytes from one endianes to the other.
Stefan Huehner <stefan@huehner.org>
- Make some function static.
- Fix some more -Wmissing-declarations warnings.

svn path=/trunk/; revision=17290
2005-08-11 18:49:40 +00:00
Casper Hornstrup
fbdd1961c7 Ignore .svn folders
svn path=/trunk/; revision=17289
2005-08-11 17:41:30 +00:00
Steven Edwards
6887acc456 remove ros specific functions from public header
svn path=/trunk/; revision=17288
2005-08-11 17:27:13 +00:00
Andrew Munger
c247f5f8b2 Added TimeOut to the correct section, removed ion's 12148 incorrect addition. 10 second default.
svn path=/trunk/; revision=17287
2005-08-11 15:55:25 +00:00
Gé van Geldorp
9664020ca4 Alexandre Julliard <julliard@winehq.org>
- Added support for HTML resource type.
Mike McCormack <mike@codeweavers.com>
- gcc 4.0 -Wpointer-sign fixes.
Stefan Huehner <stefan@huehner.org>
- Fix some -Wsign-compare warnings.
Jacek Caban <jack@itma.pwr.wroc.pl>
- '.' is a valid char of tIDENT.
Marcus Meissner <marcus@jet.franken.de>
- Fixed signedness warnings.

svn path=/trunk/; revision=17286
2005-08-11 15:10:01 +00:00
Emanuele Aliberti
f5a7132861 Cleanup.
svn path=/trunk/; revision=17285
2005-08-11 12:23:51 +00:00