Commit Graph

40842 Commits

Author SHA1 Message Date
Rob Shearman b859d2052b ole32: Allow some optional methods to be called in the OleCreate tests.
Fixes failures in these tests on NT4.
2009-02-09 14:03:09 +01:00
Rob Shearman d26250fd08 ole32: Add framework in the ole2 tests for having optionally called methods. 2009-02-09 14:03:03 +01:00
Rob Shearman db851a1d2a ole32: Output the size that we didn't expect in the HGLOBAL marshalling tests. 2009-02-09 14:02:29 +01:00
Rob Shearman f2b17029aa ole32: Fix some test failures in the HGLOBAL marshalling tests on 64-bit Windows. 2009-02-09 13:58:07 +01:00
Rob Shearman 2eca96af67 ole32: Fix CLIPFORMAT marshalling on 64-bit platforms by not using the wireCLIPFORMAT type.
The wireCLIPFORMAT represents the memory equivalent format of the wire
format and not the wire format itself.

Also update the tests to do the same.
2009-02-09 13:58:04 +01:00
Vitaliy Margolen c80fdb881a comctl32: Use style to distinguish between embedded and standalone propsheets.
Some programs alter propsheet style in the callback during creation to make
"embedded" propsheets. PSH_MODELESS controls modal/modeless operation only.
2009-02-09 13:21:34 +01:00
Andrew Talbot edca49f6aa riched20: Remove unused functions. 2009-02-09 13:21:21 +01:00
Francois Gouget 53f9b31afd user32: LookupIconIdFromDirectory16() is unused so remove it. 2009-02-09 13:16:19 +01:00
Francois Gouget 55dccf2859 uxtheme: UXINI_ResetINI() is unused so remove it. 2009-02-09 13:16:10 +01:00
Francois Gouget eda0ec3fd2 d3dx9_36: The d3dx debug channel is unused so remove it. 2009-02-09 13:16:06 +01:00
Francois Gouget 0ecc22be61 shell32: HCR_GetDefaultIconFromGUIDW() is unused so remove it. 2009-02-09 13:15:11 +01:00
Francois Gouget fc93ff351e shell32: Get rid of TRASH_ELEMENT and TRASH_DisposeElement().
The latter was unused while the former did not seem very useful.
2009-02-09 13:15:04 +01:00
Francois Gouget 59c00d5568 shell32: Remove some unused functions in clipboard.c. 2009-02-09 13:14:41 +01:00
Francois Gouget a8187db2fb winealsa.drv: ALSA_PeekRingMessage() is not used anymore so remove it. 2009-02-09 13:14:34 +01:00
Francois Gouget 4617d7753d urlmon: Make create_http_protocol() static. 2009-02-09 13:14:16 +01:00
Francois Gouget 07b7da77d4 user32: Make EditWndProcW() static, fix its documentation. 2009-02-09 13:14:03 +01:00
Francois Gouget 9e7b55675d user32: Reorder some functions to avoid forward declarations in edit.c. 2009-02-09 13:13:55 +01:00
Francois Gouget 0e9695d9c8 user32: Remove unneeded forward declarations in edit.c. 2009-02-09 13:13:42 +01:00
Dylan Smith c8b4455565 richedit: Removed ME_StrRelPos, ME_StrRelPos2, & ME_PosToVPos functions.
These functions were just being used for addition, so it was simpler to
remove the functions and modify the places it was used.

The ME_StrRelPos2 and ME_PosToVPos were just simple wrappers around
ME_StrRelPos, and ME_PosToVPos wasn't being used.
2009-02-09 13:05:13 +01:00
Dylan Smith 1eb0f73ab0 richedit: Got rid of ME_GetCharFwd and ME_GetCharBack.
These two functions were being used for simple operations, to get the
first or last character when pre-computing flags for splitting runs.

The call to ME_GetCharBack wasn't even giving the correct result, it
would always return -1 since it is being called with nPos of 0.

This patch simplifies the code by removing the functions and getting the
characters directly from the string.
2009-02-09 13:05:13 +01:00
Dylan Smith 5f15de0690 richedit: Removed ME_StrLen and ME_StrVLen field access functions.
These functions were probably previously needed because of some wierd
special handling of backspace characters, but currently there is no
reason why the nLen field can't be accessed directly.

Having to functions that just access the string length field just causes
slightly more effort for someone to look at the code, because they need
to enter the function to find out what it actually is doing.
2009-02-09 13:05:13 +01:00
Dylan Smith f148d82093 richedit: Got rid of useless function ME_VPosToPos.
The function was just returning the second parameter.  It had some
commented out code that indicated that previously backslashes weren't
included in the length.  Native wordpad doesn't handle backspaces in a
special way, so this must have been an internal representation that
complicated finding the position of characters.
2009-02-09 13:05:12 +01:00
Dylan Smith d306b6b5e9 richedit: Removed some conditions that are always taken.
ME_GetCursorCoordinates had two conditions that were always taken.  The
first condition was if(pCursor->pRun->type == diRun) was following an
assertion making the exact same check.  The next one, if(row), should
always be taken, otherwise the richedit controls are in a corrupt state,
therefore an assertion is more appropriate.
2009-02-09 13:05:12 +01:00
Dylan Smith 4b7e8f185b richedit: Avoid duplication in make string functions using ME_MakeStringB.
I found that ME_MakeStringB was previously unused, and that the other
ME_MakeString functions repeated code that was already in ME_MakeStringB.
Making ME_MakeStringB static and using it to avoid duplicate code seemed
like a better idea than removing the function.
2009-02-09 13:05:12 +01:00
Dylan Smith f53f40bcb3 richedit: Prevent string trunction due to NULL characters. 2009-02-09 13:05:12 +01:00
Dylan Smith 1ceb903f9d richedit: Simplified ME_UpdateSelectionLinkAttribute. 2009-02-09 13:05:12 +01:00
Dylan Smith 71d797c55c richedit: Directly get start and end of text on Ctrl-Home or Ctrl-End.
Previously it found the start or end by traversing the linked lists of
run, rows, paragraphs, and cells from the current position of the
cursors.  Clearly it is better to get the start or end directly to make
it a constant time operation.
2009-02-09 13:05:12 +01:00
Dylan Smith c2c2c1117e richedit: Wrap even when message says not to repaint.
Wrapping is needed to be done even when repainting isn't done since
later messages expect line breaks to reflect the current text.  Some
message can specify not to paint the sceen, but this should prevent
wrapping from being done.
2009-02-09 13:05:12 +01:00
Alexandre Julliard 6ae7b1f3e0 include: Moved VWIN32 ioctl definitions out of winioctl.h. 2009-02-09 13:05:12 +01:00
Alexandre Julliard 72fdb74326 setupapi: Don't use 'interface' as variable name, since it can be defined to a keyword. 2009-02-09 13:04:55 +01:00
Alexandre Julliard 0a81b7887f jscript: Rename the GetObjectW variable to avoid conflict with the function of the same name. 2009-02-09 13:03:59 +01:00
Alexandre Julliard 7682bc6f88 rsaenh: Rename the HANDLETABLE structure to avoid conflicts with wingdi.h. 2009-02-09 13:03:35 +01:00
Alexandre Julliard 8bb21b710e include: Undefine a few Unicode macros that conflict with interface functions. 2009-02-09 13:03:09 +01:00
Andrew Talbot e3c5225353 qcap: Remove an unused function. 2009-02-09 12:22:52 +01:00
Andrew Talbot 9a079a64e6 cabinet: Declare a function static. 2009-02-09 12:22:49 +01:00
Juan Lang 76f4b9b053 rpcrt4: Don't abort reading from a pipe if a single read is short. 2009-02-09 12:09:01 +01:00
Juan Lang c7d65aa7e1 cryptui: Delete the private keys if requested when they're successfully exported. 2009-02-09 12:08:39 +01:00
Juan Lang ccc2be7470 cryptui: Save private key in temporary store when exporting it. 2009-02-09 12:08:34 +01:00
Juan Lang af87814ac6 cryptui: Ensure a certificate's private key is exportable before allowing it to be selected for export. 2009-02-09 12:08:27 +01:00
Juan Lang fd3cd61b5d cryptui: Correct return value of the user cancels the export wizard. 2009-02-09 12:08:20 +01:00
Juan Lang 0d961d9ce3 cryptui: Implement exporting to a PFX file. 2009-02-09 12:08:15 +01:00
Juan Lang 8cb9702265 cryptui: Skip password page when moving backward through the export wizard if it wasn't shown in the first place. 2009-02-09 12:08:09 +01:00
Juan Lang 0eefd4fb3b cryptui: Validate password in export wizard. 2009-02-09 12:08:04 +01:00
Juan Lang 6209459b21 cryptui: Only show password page if the private key is to be exported. 2009-02-09 12:07:28 +01:00
Juan Lang 9c52df8364 cryptui: Add a password page to the export wizard. 2009-02-09 12:07:22 +01:00
Juan Lang 7dae1dc512 cryptui: Enable/disable PFX choice based on whether the private key is to be exported. 2009-02-09 12:07:12 +01:00
Juan Lang f09b7fa12f cryptui: Set default export format based on whether the private key is to be exported. 2009-02-09 12:07:06 +01:00
Juan Lang bd3c992795 cryptui: Make a copy of export info in CryptUIWizExport. 2009-02-09 12:06:56 +01:00
Juan Lang 53c84a8518 cryptui: Prompt whether to export the private key from CryptUIWizExport. 2009-02-09 12:06:48 +01:00
Michael Stefaniuc fb9b95b7a9 riched20: Fix some Win64 compiler warnings.
- A HWND can be safely marshaled over a LONG as its payload is not
  a pointer but a user handle.
- Use GetWindowLongPtr instead of GetWindowLong to retrieve a pointer.
2009-02-09 12:06:20 +01:00
Michael Stefaniuc df271e0e8f spoolss: Add missing LeaveCriticalSection on error path (Smatch). 2009-02-09 12:06:15 +01:00
Aric Stewart a840c35d42 msctf: Hook up ITfContextOwnerCompositionSink if present. 2009-02-09 12:06:11 +01:00
Juan Lang 42be55d744 crypt32: Fix a regression in chain tests.
Relaxing the tests on older versions of Windows caused a couple tests
to fail on more recent ones, which was unintended.
2009-02-09 12:06:02 +01:00
Artem Reznikov e9996b9be4 avifil32: Ukranian translation. 2009-02-09 12:05:54 +01:00
Alexandre Julliard 7ca85aa9ea winmm: Disable system thread if poll() support is missing. 2009-02-06 22:33:06 +01:00
Alexandre Julliard 88fd1ba7b5 makefiles: Pass the target flags to winegcc. 2009-02-06 20:31:59 +01:00
Alistair Leslie-Hughes 6421c47986 mshtml: Implement IHTMLStyle_get_backgroundColor. 2009-02-06 16:41:08 +01:00
Alistair Leslie-Hughes 20bd88895c mshtml: Implement IHTMLStyle_put_fontWeight. 2009-02-06 16:41:01 +01:00
Detlef Riekenberg 9056d4d2d4 spoolss: Move routing functions to a seperate file. 2009-02-06 16:40:51 +01:00
Jeremy White 0639904cc2 sane.ds: More completely implement ICAP_XFERMECH, with helper functions. 2009-02-06 16:40:41 +01:00
David Adam f1bb04ff8a d3dx8: Implement D3DXComputeBoundingBox. 2009-02-06 14:54:02 +01:00
David Adam 0ccc431a94 d3dx8: Implement D3DXComputeBoundingSphere. 2009-02-06 14:54:02 +01:00
Luis C. Busquets Pérez 1d3889fa6f d3dx8: Add tests for D3DXGetFVFVertexSize. 2009-02-06 14:54:02 +01:00
David Adam 496bc4d1b4 d3dx8: Implement D3DXGetFVFVertexSize. 2009-02-06 14:54:02 +01:00
David Adam cdf61610f3 d3dx8: Change the debug channel into the generic d3dx. 2009-02-06 14:54:02 +01:00
David Adam 952d10a67f d3dx8: Remove useless includes. 2009-02-06 14:54:02 +01:00
David Adam edef19f8d6 d3dx8: Move some functions into core.c to match the header file layout. 2009-02-06 14:54:01 +01:00
Alexandre Julliard fb04bcf638 Fix position of CDECL qualifier for functions that return pointers. 2009-02-06 14:54:01 +01:00
Michael Stefaniuc fc46bb1479 comctl32/tests: Remove superfluous pointer casts. 2009-02-06 14:54:01 +01:00
Dylan Smith 5c91d5356e richedit: Avoided searching for adjacent paragraphs through runs.
When finding an adjacent paragraph, the next_para and prev_para pointers
should be used because they are direct pointers, a constant time
operation.  Instead I found some places in the code that searched through
the general linked list to get to an adjacent paragraph, which is a linear
time operation, depending on the number of rows and runs in between
paragraphs.
2009-02-06 14:54:01 +01:00
Dylan Smith 5a84e193c2 richedit: Removed incorrect FIXME comment.
The fixme comment is suggesting wrapping a paragraph within a function
that is for moving the selection cursor up or down a line when the up
or down keys are pressed.  The contents fo paragraph aren't being
changed, so there is no need to wrap the paragraph.
2009-02-06 14:50:27 +01:00
Dylan Smith e082dd3042 richedit: Add paragraph field to wrap context to avoid searching for it.
More case of searching for the paragraph through the linked list when
is was already previously available.  Since each wrap context is used
for wrapping each paragraph, I decided to add the reference to the
paragarph in the structure.
2009-02-06 14:50:27 +01:00
Dylan Smith d20e057d8e richedit: Accept paragraph as parameter for ME_CharOfsFromRunOfs.
Rather than get the paragraph from the run, the function allows the
caller to provide the paragraph, since it is already available.  This
reduces unnecessary traversals of lists that take longer as more runs
and rows are in the paragraph.
2009-02-06 14:50:27 +01:00
Dylan Smith 12ca50db7a richedit: Get the paragraph with ME_RunOfsFromCharOfs.
The ME_RunOfsFromCharOfs function finds the paragraph before finding the
run and offset within the run, so the function may as well be able to
return this paragraph to the caller.  Many callers to the function
instead find the paragraph from the run, which ends up unnecessarily
traversing a linked list of runs within the paragraph.
2009-02-06 14:50:27 +01:00
Dylan Smith a5bfa1a2ab richedit: Properly destroy context in two places.
Whenever ME_InitContext is called, ME_DestroyContext should be used to
clean it up.  This way the context can be extended easily by modifying
those two functions.  Instead, these two places of code just released
the DC, without using ME_DestroyContext, so the created brush for the
margin was not deleted.
2009-02-06 14:50:27 +01:00
Dylan Smith ea9e062b6c richedit: Removed unnecessary calls to ME_WrapMarkedParagraphs.
These calls to ME_WrapMarkedParagraphs never do anything, and don't make
sense to be called in these places. These places are for ME_MoveCaret,
and ME_ArrowHome, which both don't involve any text being modified, and
all (direct and indirect) calls to these functions are done after the
text has already been wrapped.
2009-02-06 14:50:27 +01:00
Dylan Smith a490e155dc richedit: Simplified the character length delete protection.
The value for nMaxChars can be found easier by using ME_GetTextLength.
2009-02-06 14:50:27 +01:00
Juan Lang 1f3fd357db crypt32: Fix some test failures on older versions of Windows. 2009-02-06 14:50:27 +01:00
Aric Stewart 67d00e3ee6 msctf: When a Context is created connect to the ITextStoreACP if provided and create and advise our ITextStoreACPSink. 2009-02-06 14:50:26 +01:00
Aric Stewart 44148fe99a msctf: Add stub ITextStoreACPSink. 2009-02-06 14:50:26 +01:00
Jacek Caban 21e1b15795 mshtml: Remove document observer before releasing nsdoc. 2009-02-06 14:50:26 +01:00
Jacek Caban d0c6939663 mshtml: Wine Gecko 0.9.1 release. 2009-02-06 14:50:26 +01:00
Paul Vriens f42e507037 fusion/tests: Fix some tests failures on .NET 1.1 (and Win98). 2009-02-06 13:05:31 +01:00
Paul Vriens 09fc4e8063 fusion/tests: Fix a test failure on Win64. 2009-02-06 13:05:26 +01:00
Paul Vriens a89bd3f562 fusion/tests: Fix some test failures on systems with .NET 1.1. 2009-02-06 13:05:22 +01:00
Paul Vriens cf9f4dfa2a fusion/tests: Run tests correctly on Win98. 2009-02-06 13:05:06 +01:00
Michael Stefaniuc 2c11f3a5a5 winejack.drv: The dwParam1/dwParam2 function arguments are DWORD_PTR. 2009-02-06 13:04:57 +01:00
Michael Stefaniuc b8a5ab2924 winmm: SendDriverMessage takes LPARAM as 3rd and 4th argument. 2009-02-06 13:04:50 +01:00
Andre Wisplinghoff 6c96347121 comdlg32: Update German and French translation. 2009-02-06 13:04:44 +01:00
Ken Thomases 4cfa5b875c winecoreaudio.drv: Add support for waveOutBreakLoop/WODM_BREAKLOOP. 2009-02-06 13:04:37 +01:00
Marcus Meissner ad0a5f1bd2 mshtml: Fixed size passed to MultiByteToWideChar. 2009-02-06 13:04:32 +01:00
Marcus Meissner fb3d3d020d advapi32: Fixed size of userName. 2009-02-06 13:04:22 +01:00
Andrew Talbot e2eaface45 netapi32: Remove unused functions. 2009-02-06 13:04:06 +01:00
Andrew Talbot c0ad988e67 msi: Remove unused functions. 2009-02-06 13:04:03 +01:00
Aric Stewart 096643dfa6 msctf: Stub implementation of SetInputScopes. 2009-02-06 13:03:57 +01:00
Aric Stewart b7a47e7223 msctf: Stub for SetInputScope. 2009-02-06 13:03:52 +01:00
David Hedberg 2254a549a6 msvcrt: Implement _mbcjistojms. 2009-02-06 13:03:34 +01:00
Rob Shearman 7fe67b159d rpcrt4: Change the test of CStdStubBuffer->pPSFactory to only test for the field not being NULL.
The address varies on older versions of Windows and isn't really important.
2009-02-06 13:03:19 +01:00
Rob Shearman 40660894c8 ole32: Fix an ole2 test failure on Win9x and NT4.
The combination of CF_BITMAP and TYMED_GLOBAL isn't accepted on newer
versions of Windows, so mark it as broken.
2009-02-06 13:03:16 +01:00
Juan Lang 029c3fbb8d shell32: Fix a few tests on Windows 98 and Vista. 2009-02-06 13:03:11 +01:00