Commit Graph

54696 Commits

Author SHA1 Message Date
Dylan Smith 61308257f2 richedit: Removed redundant ME_FindItemAtOffset using ME_RunOfsFromCharOfs.
The two functions ME_FindItemAtOffset and ME_RunOfsFromCharOfs were almost
identically used, since ME_FindItemAtOffset was always used to find a run.
The only difference was how they returned the offset within the run for an
end of paragraph run.

For ME_FindItemAtOffset it would return the next run if it was in between \r
and \n. ME_RunOfsFromCharOfs would instead return an nOffset of 0 for end
paragraph runs.  This subtle difference introduced bugs, so I decided to
avoid having special case in this function when creating this patch, and
instead let the caller handle this case.
2009-01-27 11:21:33 +01:00
Dylan Smith 61f189cec8 richedit: Handle starting in EOL sequence in EM_GETTEXTRANGE.
EM_GETTEXTRANGE allows the start character offset and end characters
offset to be used to specify the range of text to retrieve.  If the
start offset is in the middle of an end of paragraph run (i.e. \r\n),
then it should only retrieve the characters after the specified
character offset.
2009-01-27 11:21:16 +01:00
Dylan Smith 5bf9e73dd0 riched32: Test for EM_GETTEXTRANGE from middle of end of paragraph run.
EM_GETTEXTRANGE should be able to get part of the end of paragraph run,
for instance just the line feed in a carraige return line feed pair.
2009-01-27 11:21:07 +01:00
Dylan Smith c94e78a572 richedit: Handle case for EM_LINELENGTH when offset is between \r\n.
I found that ME_FindItemAtOffset and ME_CursorFromCharOfs are used
almost identically, except for how they handle a character offset that
is between a carriage return and line feed.  In this case
ME_CursorFromCharOfs sets the cursor's run offset to 0, but
ME_FindItemAtOffset instead returns the next run which is what was
causing ME_LINELENGTH to incorrectly return the length of the next
line.
2009-01-27 11:20:59 +01:00
Dylan Smith 83ff6a5c5d riched32: Test EM_LINELENGTH between carriage return & line feed.
Previously this wasn't properly tested for, since all the lines had
text of the same length, so it wasn't properly testing to see which
line length it was getting.
2009-01-27 11:20:49 +01:00
Dylan Smith 0832737427 richedit: End of line sequence limited to 2 carriage returns.
riched32.dll does preserve the carriage returns and line feeds unlike
later versions of the richedit control, however the tests previously
missed the fact that a sequence of carriage returns followed by a line
feed (e.g. \r\r\r\n) can actually cause multiple paragraph breaks.
2009-01-27 11:20:37 +01:00
Dylan Smith 29ddbce288 riched32: Modified tests to show paragraph break inconsistency.
Several carriage returns followed by a line break were being handled as
a single paragraph break, when actually native richedit controls may
count this as several line breaks.
2009-01-27 11:20:15 +01:00
Austin English 53d3c46bf9 configure: Fix <netinet/tcp_var.h> detection on OpenBSD. 2009-01-27 11:20:02 +01:00
Austin English bb3f25848f configure: Fix <netinet/in_pcb.h> detection on OpenBSD. 2009-01-27 11:19:07 +01:00
Austin English f49a8a6242 tools/wine.inf: Add a placeholder for stdole2.tlb. 2009-01-27 11:18:38 +01:00
Rico Schüller c97d3d7162 d3dx9_40: Implement d3dx9_40 and forward the functions to d3dx9_36. 2009-01-27 11:10:29 +01:00
Rico Schüller d5366eed92 d3dx9_39: Fix version information. 2009-01-27 11:09:47 +01:00
Rico Schüller bb7d245137 d3dx9_38: Fix version information. 2009-01-27 11:09:41 +01:00
Marcus Meissner e1d9a793be kernel32: Initialize events correctly. 2009-01-27 11:09:24 +01:00
Marcus Meissner ea4c70a1bd shell32: Added missing fclose (Coverity). 2009-01-27 11:09:13 +01:00
Marcus Meissner 294382269d ddrawex: Use stack ctx instead of uninitialized variable. 2009-01-27 11:09:08 +01:00
Austin English 507f6710ba iphlpapi: Fix includes for NetBSD. 2009-01-27 11:08:58 +01:00
Ricardo Filipe 4efd105fb3 setupapi: Add stub for SetupDiGetClassImageList. 2009-01-27 11:08:37 +01:00
Ricardo Filipe 63a5cec8cd ntdll: Add stub for RtlCompressBuffer. 2009-01-27 11:08:33 +01:00
Juan Lang 4de59850d5 crypt32: Fix typo. 2009-01-27 11:08:16 +01:00
Juan Lang 157709d7a2 cryptui: Export all selected certificates when requested from the certificate manager, not just the first one. 2009-01-27 11:08:11 +01:00
Juan Lang 56b38801b1 cryptui: Set default export file name based on input in CryptUIWizExport. 2009-01-27 11:08:03 +01:00
Juan Lang b2fefc0ffd cryptui: Move code for enabling the PFX export format to the correct dialog proc. 2009-01-27 11:07:45 +01:00
Juan Lang 214045988f cryptui: Select export format based on input in CryptUIWizExport. 2009-01-27 11:07:38 +01:00
Juan Lang 15a8ea6a51 cryptui: Implement CryptUIWizExport for CRYPTUI_WIZ_EXPORT_CERT_STORE_CERTIFICATES_ONLY. 2009-01-27 11:07:12 +01:00
Juan Lang befce84f4c crypt32: Close file when appropriate in CertSaveStore. 2009-01-27 11:06:58 +01:00
Juan Lang 6917fdd3a8 crypt32: Set save function in switch statement rather than with trinary conditional operator. 2009-01-27 11:06:44 +01:00
Juan Lang a7096f9636 cryptui: Add support for exporting a serialized store from CryptUIWizExport. 2009-01-27 11:04:30 +01:00
Juan Lang 072b606588 include: Add missing type to union. 2009-01-27 11:04:14 +01:00
Juan Lang 4ae62fba22 cryptui: Add error checking to CryptUIWizExport. 2009-01-27 11:03:51 +01:00
Juan Lang 1165146188 cryptui: Default to exporting in DER format. 2009-01-27 11:03:45 +01:00
Juan Lang 53955c57fe cryptui: Always initialize export wizard's export options. 2009-01-27 11:03:39 +01:00
David Adam 5775edd805 d3dx9_39: Implement this dll and forward the functions to d3dx9_36. 2009-01-26 16:35:08 +01:00
David Adam 1c5b536d8a d3dx9_38: Implement the dll and forward the functions to d3dx9_36. 2009-01-26 16:34:41 +01:00
Aric Stewart f55151a33a rasdlg: Initial stub dll. 2009-01-26 16:27:01 +01:00
Ge van Geldorp ee3a743e6c kernel32/tests: "none" debugger test needs user interaction. 2009-01-26 16:08:30 +01:00
Marcus Meissner 76b08f3aa7 msi: Initialize row (Coverity). 2009-01-26 16:08:25 +01:00
James Hawkins 99e7287ed7 advpack: Don't test properties of a file if it can't be created. 2009-01-26 16:08:02 +01:00
James Hawkins a072f85b9f advapi32: Skip tests if the default provider cannot be removed. 2009-01-26 16:07:56 +01:00
James Hawkins 8322bd78e8 advpack: Skip tests for broken functions. 2009-01-26 16:07:48 +01:00
Ge van Geldorp 115805f12e setupapi/tests: Make tests pass on Vista and W2K8. 2009-01-26 16:07:44 +01:00
Ge van Geldorp b7ac6cb01d uxtheme/tests: Adjust error test for W2K8. 2009-01-26 16:07:40 +01:00
Ge van Geldorp f7a34db378 ole32/tests: Some Windows versions need the class to be registered. 2009-01-26 16:06:02 +01:00
Andrey Turkin b1df9d11b1 dwmapi: Add DwmEnableMMCSS stub. 2009-01-26 16:05:53 +01:00
Andrew Talbot e2fa299029 winedos: Declare some functions static. 2009-01-26 16:05:46 +01:00
Andrew Talbot 2705a96add winealsa.drv: Declare a function static. 2009-01-26 16:05:42 +01:00
Nikolay Sivov f4f5ee152d mshtml/tests: Fix interface release (Coverity). 2009-01-26 15:49:06 +01:00
Nikolay Sivov 2fbe8d23eb msi: Fix potential NULL pointer dereference in ILockBytes_Release (Coverity). 2009-01-26 15:49:01 +01:00
Nikolay Sivov 9598a50916 msi: Fix NULL dereference in MsiQueryComponentStateW (Coverity). 2009-01-26 15:48:57 +01:00
Andrew Talbot f34e733c2c setupapi: Declare a function static. 2009-01-26 15:48:51 +01:00