wine
15 years agomsadp32: MSDN suggests "wfx.nBlockAlign * 2 / wfx.nChannels - 12" as the formula...
Stefano Guidoni [Mon, 9 Feb 2009 21:06:30 +0000 (22:06 +0100)] 
msadp32: MSDN suggests "wfx.nBlockAlign * 2 / wfx.nChannels - 12" as the formula for calculating wSamplesPerBlock.

15 years agomsadp32: Block align size is proportional to the number of channels.
Stefano Guidoni [Mon, 9 Feb 2009 20:56:19 +0000 (21:56 +0100)] 
msadp32: Block align size is proportional to the number of channels.

15 years agomsadp32: ADPCM allows other sample rates other than 8000, 11025, 22050 and 44100.
Stefano Guidoni [Mon, 9 Feb 2009 20:34:13 +0000 (21:34 +0100)] 
msadp32: ADPCM allows other sample rates other than 8000, 11025, 22050 and 44100.

15 years agowinegcc: Added some strarray_free() (Coverity).
Marcus Meissner [Tue, 10 Feb 2009 18:33:32 +0000 (19:33 +0100)] 
winegcc: Added some strarray_free() (Coverity).

15 years agod3dx9_36: Implement D3DXGetFVFVertexSize.
David Adam [Tue, 10 Feb 2009 14:44:24 +0000 (15:44 +0100)] 
d3dx9_36: Implement D3DXGetFVFVertexSize.

15 years agod3dx9_36: Implement D3DXComputeBoundingSphere.
David Adam [Tue, 10 Feb 2009 14:43:36 +0000 (15:43 +0100)] 
d3dx9_36: Implement D3DXComputeBoundingSphere.

15 years agod3dx9_36: Implement D3DXComputeBoundingBox.
David Adam [Tue, 10 Feb 2009 15:06:41 +0000 (16:06 +0100)] 
d3dx9_36: Implement D3DXComputeBoundingBox.

15 years agomshtml: Implement IDispatch for IHTMLLocation.
Alistair Leslie-Hughes [Tue, 10 Feb 2009 21:55:07 +0000 (08:55 +1100)] 
mshtml: Implement IDispatch for IHTMLLocation.

15 years agofusion/tests: Fix some typos.
Paul Vriens [Wed, 11 Feb 2009 10:09:04 +0000 (11:09 +0100)] 
fusion/tests: Fix some typos.

15 years agofusion/tests: Mark test as skipped when we don't have enough rights.
Paul Vriens [Wed, 11 Feb 2009 09:59:00 +0000 (10:59 +0100)] 
fusion/tests: Mark test as skipped when we don't have enough rights.

15 years agoole32: Remove superfluous pointer casts.
Michael Stefaniuc [Wed, 11 Feb 2009 09:48:38 +0000 (10:48 +0100)] 
ole32: Remove superfluous pointer casts.

15 years agowineesd.drv: dwParam1 and dwParam2 have the type DWORD_PTR.
Michael Stefaniuc [Tue, 10 Feb 2009 22:31:38 +0000 (23:31 +0100)] 
wineesd.drv: dwParam1 and dwParam2 have the type DWORD_PTR.

15 years agoitss: Replace malloc() with HeapAlloc().
Andrew Talbot [Tue, 10 Feb 2009 22:18:08 +0000 (22:18 +0000)] 
itss: Replace malloc() with HeapAlloc().

15 years agodbghelp: Fix bad call to free() instead of pdb_free().
Eric Pouech [Tue, 10 Feb 2009 21:29:18 +0000 (22:29 +0100)] 
dbghelp: Fix bad call to free() instead of pdb_free().

15 years agocrypt32: Fix a typo.
Juan Lang [Tue, 10 Feb 2009 18:41:32 +0000 (10:41 -0800)] 
crypt32: Fix a typo.

15 years agocrypt32: Fix a test failure on Windows 98.
Juan Lang [Tue, 10 Feb 2009 19:07:37 +0000 (11:07 -0800)] 
crypt32: Fix a test failure on Windows 98.

15 years agocrypt32: Fix a compiler warning.
Juan Lang [Tue, 10 Feb 2009 19:03:11 +0000 (11:03 -0800)] 
crypt32: Fix a compiler warning.

15 years agocrypt32: Relax a test whose results are ignored on Windows anyway.
Juan Lang [Tue, 10 Feb 2009 18:43:31 +0000 (10:43 -0800)] 
crypt32: Relax a test whose results are ignored on Windows anyway.

15 years agod3d9: Test table fog and exp fog in the shader fog test.
Stefan Dösinger [Mon, 19 Jan 2009 17:56:25 +0000 (18:56 +0100)] 
d3d9: Test table fog and exp fog in the shader fog test.

15 years agowined3d: Implement EXP and EXP2 fog in GLSL.
Stefan Dösinger [Fri, 2 Jan 2009 00:59:13 +0000 (01:59 +0100)] 
wined3d: Implement EXP and EXP2 fog in GLSL.

15 years agowined3d: Properly set the fog frag coord according to the FOGTABLEMODE.
Stefan Dösinger [Sat, 10 Jan 2009 01:29:39 +0000 (02:29 +0100)] 
wined3d: Properly set the fog frag coord according to the FOGTABLEMODE.

This also fixes the test that an earlier patch broke, so the todo_wine can be
removed again.

15 years agoWineD3D: Put vertex shader duplication infrastructure in place.
Stefan Dösinger [Thu, 5 Feb 2009 18:44:32 +0000 (19:44 +0100)] 
WineD3D: Put vertex shader duplication infrastructure in place.

15 years agoole32: Fix a test failure in the moniker tests on Win9x.
Rob Shearman [Tue, 10 Feb 2009 15:32:12 +0000 (15:32 +0000)] 
ole32: Fix a test failure in the moniker tests on Win9x.

Also fix a crash in running the tests on Win95.

15 years agoole32: Fix some test failures in the free threaded marshaller tests on Win9x & NT4.
Rob Shearman [Tue, 10 Feb 2009 15:32:01 +0000 (15:32 +0000)] 
ole32: Fix some test failures in the free threaded marshaller tests on Win9x & NT4.

These platforms only write 8 bytes into the stream so cope appropriately.

15 years agowininet: Don't send INTERNET_STATUS_REQUEST_COMPLETE notification from FTP_Connect.
Jacek Caban [Tue, 10 Feb 2009 15:31:19 +0000 (16:31 +0100)] 
wininet: Don't send INTERNET_STATUS_REQUEST_COMPLETE notification from FTP_Connect.

15 years agowininet: Make sure that we have some data buffered before sending INTERNET_STATUS_REQ...
Jacek Caban [Tue, 10 Feb 2009 15:30:45 +0000 (16:30 +0100)] 
wininet: Make sure that we have some data buffered before sending INTERNET_STATUS_REQUEST_COMPLETE notification.

15 years agowininet: Added QueryDataAvailable implementation for FTP files.
Jacek Caban [Tue, 10 Feb 2009 15:29:40 +0000 (16:29 +0100)] 
wininet: Added QueryDataAvailable implementation for FTP files.

15 years agowininet: Fixed handling empty string password.
Jacek Caban [Tue, 10 Feb 2009 15:29:11 +0000 (16:29 +0100)] 
wininet: Fixed handling empty string password.

15 years agowininet: Move FtpOpenFile[AW] implementation to avoid forward declaration.
Jacek Caban [Tue, 10 Feb 2009 15:28:56 +0000 (16:28 +0100)] 
wininet: Move FtpOpenFile[AW] implementation to avoid forward declaration.

15 years agod3dxof: Add support for DXFILELOAD_FROMRESOURCE source.
Christian Costa [Tue, 10 Feb 2009 13:12:47 +0000 (14:12 +0100)] 
d3dxof: Add support for DXFILELOAD_FROMRESOURCE source.

15 years agod3dxof: Cleanup IDirectXFileImpl_CreateEnumObject a bit.
Christian Costa [Tue, 10 Feb 2009 13:08:11 +0000 (14:08 +0100)] 
d3dxof: Cleanup IDirectXFileImpl_CreateEnumObject a bit.

15 years agod3dxof: Make is_keyword handle end of file correctly.
Christian Costa [Tue, 10 Feb 2009 13:07:19 +0000 (14:07 +0100)] 
d3dxof: Make is_keyword handle end of file correctly.

15 years agorichedit: Store paragraph in cursors.
Dylan Smith [Mon, 9 Feb 2009 17:01:35 +0000 (12:01 -0500)] 
richedit: Store paragraph in cursors.

This prevents some needless searching for the start of the paragraph
from a run stored in a cursor.  Usually a pointer to the paragraph is
already available when the cursor is set anyway.

15 years agosane.ds: Add a log message to flag unsupported operations.
Jeremy White [Mon, 9 Feb 2009 19:02:47 +0000 (13:02 -0600)] 
sane.ds: Add a log message to flag unsupported operations.

15 years agosane.ds: Remove a duplicate assignment.
Jeremy White [Mon, 9 Feb 2009 19:02:39 +0000 (13:02 -0600)] 
sane.ds: Remove a duplicate assignment.

15 years agosane.ds: Indicate that we used a modal dialog.
Jeremy White [Mon, 9 Feb 2009 19:02:32 +0000 (13:02 -0600)] 
sane.ds: Indicate that we used a modal dialog.

15 years agosane.ds: Revise the logic around processing events to reflect the need for us to...
Jeremy White [Mon, 9 Feb 2009 19:02:28 +0000 (13:02 -0600)] 
sane.ds: Revise the logic around processing events to reflect the need for us to generate and post a message to drive Sane events.

15 years agosane.ds: Add stub support for ICAP_COMPRESSION.
Jeremy White [Mon, 9 Feb 2009 19:02:05 +0000 (13:02 -0600)] 
sane.ds: Add stub support for ICAP_COMPRESSION.

15 years agotwain_32: Prevent an incorrect test warning message on get checks.
Jeremy White [Mon, 9 Feb 2009 19:01:57 +0000 (13:01 -0600)] 
twain_32: Prevent an incorrect test warning message on get checks.

15 years agotwain_32: Change get requirements such that we require only a minimum level of support.
Jeremy White [Mon, 9 Feb 2009 19:01:48 +0000 (13:01 -0600)] 
twain_32: Change get requirements such that we require only a minimum level of support.

15 years agosane.ds: Add support for CAP_UICONTROLLABLE.
Jeremy White [Mon, 9 Feb 2009 19:01:39 +0000 (13:01 -0600)] 
sane.ds: Add support for CAP_UICONTROLLABLE.

15 years agosane.ds: Add partial stub support for ICAP_PIXELTYPE, with tests. Fixes a first crash...
Jeremy White [Mon, 9 Feb 2009 19:01:27 +0000 (13:01 -0600)] 
sane.ds: Add partial stub support for ICAP_PIXELTYPE, with tests. Fixes a first crash in Adobe Acrobat scanning support.

15 years agosane.ds: Return a 0 for MSG_QUERYSUPPORT even for capabilities we don't support.
Jeremy White [Mon, 9 Feb 2009 19:01:09 +0000 (13:01 -0600)] 
sane.ds: Return a 0 for MSG_QUERYSUPPORT even for capabilities we don't support.

15 years agosane.ds: Eliminate incorrect TWRC_FAILURE return.
Jeremy White [Mon, 9 Feb 2009 19:01:03 +0000 (13:01 -0600)] 
sane.ds: Eliminate incorrect TWRC_FAILURE return.

15 years agosane.ds: More correctly stub CAP_XFERCOUNT, and tests.
Jeremy White [Mon, 9 Feb 2009 19:00:57 +0000 (13:00 -0600)] 
sane.ds: More correctly stub CAP_XFERCOUNT, and tests.

15 years agosane.ds: Rearrange function position to avoid the need for forward function declarations.
Jeremy White [Mon, 9 Feb 2009 19:00:47 +0000 (13:00 -0600)] 
sane.ds: Rearrange function position to avoid the need for forward function declarations.

15 years agosane.ds: Simplify SANE_SaneCapability.
Jeremy White [Mon, 9 Feb 2009 18:59:15 +0000 (12:59 -0600)] 
sane.ds: Simplify SANE_SaneCapability.

15 years agowineesd.drv: Remove superfluous pointer casts.
Michael Stefaniuc [Tue, 10 Feb 2009 09:03:22 +0000 (10:03 +0100)] 
wineesd.drv: Remove superfluous pointer casts.

15 years agomsvfw32: Remove some Win64 compiler warnings.
Michael Stefaniuc [Mon, 9 Feb 2009 22:34:30 +0000 (23:34 +0100)] 
msvfw32: Remove some Win64 compiler warnings.

- Use HandleToLong to get to the user handle.
- Use GetWindowLongPtr to retrieve a pointer.

15 years agoole32: Use GetWindowLongPtr/SetWindowLongPtr for pointers.
Michael Stefaniuc [Mon, 9 Feb 2009 22:34:20 +0000 (23:34 +0100)] 
ole32: Use GetWindowLongPtr/SetWindowLongPtr for pointers.

15 years agowinenas.drv: dwParam1 and dwParam2 cwhave the type DWORD_PTR.
Michael Stefaniuc [Mon, 9 Feb 2009 22:35:05 +0000 (23:35 +0100)] 
winenas.drv: dwParam1 and dwParam2 cwhave the type DWORD_PTR.

15 years agowidl: Change write_type_def_or_decl and write_type_decl to take an argument name...
Alexandre Julliard [Tue, 10 Feb 2009 11:32:36 +0000 (12:32 +0100)] 
widl: Change write_type_def_or_decl and write_type_decl to take an argument name instead of a printf format.

15 years agofusion/tests: Mark some tests as broken() on .NET 1.0.
Paul Vriens [Tue, 10 Feb 2009 08:57:42 +0000 (09:57 +0100)] 
fusion/tests: Mark some tests as broken() on .NET 1.0.

15 years agoddraw: Use ddraw_from_d3d7 to make a (IDirectDrawImpl *) from a (IDirect3D7 *).
Vincent Pelletier [Mon, 9 Feb 2009 21:58:27 +0000 (22:58 +0100)] 
ddraw: Use ddraw_from_d3d7 to make a (IDirectDrawImpl *) from a (IDirect3D7 *).

15 years agocrypt32: Fix some tests on Windows 98.
Juan Lang [Mon, 9 Feb 2009 22:39:11 +0000 (14:39 -0800)] 
crypt32: Fix some tests on Windows 98.

15 years agocrypt32: Fix a few more test failures on older versions of Windows.
Juan Lang [Mon, 9 Feb 2009 21:49:33 +0000 (13:49 -0800)] 
crypt32: Fix a few more test failures on older versions of Windows.

15 years agogdiplus: Handle zero width/height in GdipAddPathPie.
Nikolay Sivov [Mon, 9 Feb 2009 20:25:06 +0000 (23:25 +0300)] 
gdiplus: Handle zero width/height in GdipAddPathPie.

15 years agoactivscp.idl: Added IActiveScriptParseProcedure*64 interfaces and use it on Win64.
Jacek Caban [Mon, 9 Feb 2009 20:11:36 +0000 (21:11 +0100)] 
activscp.idl: Added IActiveScriptParseProcedure*64 interfaces and use it on Win64.

15 years agogdiplus: Some tests for LinearGradientBrush.
Nikolay Sivov [Mon, 9 Feb 2009 13:58:59 +0000 (16:58 +0300)] 
gdiplus: Some tests for LinearGradientBrush.

15 years agomsxml3: Use our parent doc if we don't have one.
Alistair Leslie-Hughes [Thu, 5 Feb 2009 09:43:59 +0000 (20:43 +1100)] 
msxml3: Use our parent doc if we don't have one.

15 years agomsadp32.acm: Make destination aligned on destination block size (copy/paste error).
Vincent Pelletier [Wed, 4 Feb 2009 20:11:05 +0000 (21:11 +0100)] 
msadp32.acm: Make destination aligned on destination block size (copy/paste error).

15 years agogphoto2.ds: Replace malloc() with HeapAlloc().
Andrew Talbot [Sat, 7 Feb 2009 19:45:32 +0000 (19:45 +0000)] 
gphoto2.ds: Replace malloc() with HeapAlloc().

15 years agoinclude: Fix commdlg hook procedures return type.
Ricardo Filipe [Sun, 8 Feb 2009 12:20:47 +0000 (12:20 +0000)] 
include: Fix commdlg hook procedures return type.

15 years agowinecfg: Fix for paths containing utf-8.
David Hedberg [Fri, 6 Feb 2009 23:37:32 +0000 (00:37 +0100)] 
winecfg: Fix for paths containing utf-8.

15 years agospoolss: Implement EnumMonitors.
Detlef Riekenberg [Sun, 8 Feb 2009 15:49:38 +0000 (16:49 +0100)] 
spoolss: Implement EnumMonitors.

15 years agowinspool: Move EnumPortsW to the backend.
Detlef Riekenberg [Sun, 8 Feb 2009 15:45:08 +0000 (16:45 +0100)] 
winspool: Move EnumPortsW to the backend.

15 years agolocalspl: Move provider functions to a seperate file.
Detlef Riekenberg [Sun, 8 Feb 2009 15:38:30 +0000 (16:38 +0100)] 
localspl: Move provider functions to a seperate file.

15 years agofusion/tests: Skip tests on .NET 1.1.
Paul Vriens [Mon, 9 Feb 2009 12:39:37 +0000 (13:39 +0100)] 
fusion/tests: Skip tests on .NET 1.1.

15 years agoshell32: Make ILGetDisplayNameExA() static, remove WINAPI and fix its documentation.
Francois Gouget [Mon, 9 Feb 2009 11:15:06 +0000 (12:15 +0100)] 
shell32: Make ILGetDisplayNameExA() static, remove WINAPI and fix its documentation.

15 years agooleaut32: Remove superfluous pointer casts.
Michael Stefaniuc [Mon, 9 Feb 2009 08:45:52 +0000 (09:45 +0100)] 
oleaut32: Remove superfluous pointer casts.

15 years agowinedos: Adjust get_timer_val calls to prevent buffer overflow.
Florian Tobias Schandinat [Mon, 9 Feb 2009 09:23:47 +0000 (10:23 +0100)] 
winedos: Adjust get_timer_val calls to prevent buffer overflow.

15 years agouser32/tests: Fix some window test failures on various Windows platforms.
Alexandre Julliard [Mon, 9 Feb 2009 13:20:17 +0000 (14:20 +0100)] 
user32/tests: Fix some window test failures on various Windows platforms.

15 years agodbghelp: Fix handling of empty file regexp (Coverity).
Alexandre Julliard [Mon, 9 Feb 2009 13:20:00 +0000 (14:20 +0100)] 
dbghelp: Fix handling of empty file regexp (Coverity).

15 years agoadvapi32: LookupAccountNameW removed redundant NULL check (Coverity).
Marcus Meissner [Mon, 9 Feb 2009 07:52:42 +0000 (08:52 +0100)] 
advapi32: LookupAccountNameW removed redundant NULL check (Coverity).

15 years agoole32: Allow some optional methods to be called in the OleCreate tests.
Rob Shearman [Sun, 8 Feb 2009 18:03:27 +0000 (18:03 +0000)] 
ole32: Allow some optional methods to be called in the OleCreate tests.

Fixes failures in these tests on NT4.

15 years agoole32: Add framework in the ole2 tests for having optionally called methods.
Rob Shearman [Sun, 8 Feb 2009 18:03:13 +0000 (18:03 +0000)] 
ole32: Add framework in the ole2 tests for having optionally called methods.

15 years agoole32: Output the size that we didn't expect in the HGLOBAL marshalling tests.
Rob Shearman [Sun, 8 Feb 2009 18:02:07 +0000 (18:02 +0000)] 
ole32: Output the size that we didn't expect in the HGLOBAL marshalling tests.

15 years agoole32: Fix some test failures in the HGLOBAL marshalling tests on 64-bit Windows.
Rob Shearman [Sun, 8 Feb 2009 18:01:14 +0000 (18:01 +0000)] 
ole32: Fix some test failures in the HGLOBAL marshalling tests on 64-bit Windows.

15 years agoole32: Fix CLIPFORMAT marshalling on 64-bit platforms by not using the wireCLIPFORMAT...
Rob Shearman [Sun, 8 Feb 2009 18:00:26 +0000 (18:00 +0000)] 
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.

15 years agocomctl32: Use style to distinguish between embedded and standalone propsheets.
Vitaliy Margolen [Sun, 8 Feb 2009 22:43:00 +0000 (15:43 -0700)] 
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.

15 years agoreg: Don't close not open reg key (Coverity).
Nikolay Sivov [Sun, 8 Feb 2009 13:27:48 +0000 (16:27 +0300)] 
reg: Don't close not open reg key (Coverity).

15 years agoriched20: Remove unused functions.
Andrew Talbot [Sat, 7 Feb 2009 19:38:54 +0000 (19:38 +0000)] 
riched20: Remove unused functions.

15 years agouser32: LookupIconIdFromDirectory16() is unused so remove it.
Francois Gouget [Sat, 7 Feb 2009 19:18:40 +0000 (20:18 +0100)] 
user32: LookupIconIdFromDirectory16() is unused so remove it.

15 years agouxtheme: UXINI_ResetINI() is unused so remove it.
Francois Gouget [Sat, 7 Feb 2009 15:04:49 +0000 (16:04 +0100)] 
uxtheme: UXINI_ResetINI() is unused so remove it.

15 years agod3dx9_36: The d3dx debug channel is unused so remove it.
Francois Gouget [Sat, 7 Feb 2009 15:11:07 +0000 (16:11 +0100)] 
d3dx9_36: The d3dx debug channel is unused so remove it.

15 years agoprogman: Make DIALOG_Symbol() static.
Francois Gouget [Sat, 7 Feb 2009 15:10:33 +0000 (16:10 +0100)] 
progman: Make DIALOG_Symbol() static.

15 years agotaskmgr: Make some functions static.
Francois Gouget [Sat, 7 Feb 2009 15:09:34 +0000 (16:09 +0100)] 
taskmgr: Make some functions static.

15 years agoshell32: HCR_GetDefaultIconFromGUIDW() is unused so remove it.
Francois Gouget [Sat, 7 Feb 2009 15:09:28 +0000 (16:09 +0100)] 
shell32: HCR_GetDefaultIconFromGUIDW() is unused so remove it.

15 years agoshell32: Get rid of TRASH_ELEMENT and TRASH_DisposeElement().
Francois Gouget [Sat, 7 Feb 2009 15:09:05 +0000 (16:09 +0100)] 
shell32: Get rid of TRASH_ELEMENT and TRASH_DisposeElement().

The latter was unused while the former did not seem very useful.

15 years agoshell32: Remove some unused functions in clipboard.c.
Francois Gouget [Sat, 7 Feb 2009 15:08:22 +0000 (16:08 +0100)] 
shell32: Remove some unused functions in clipboard.c.

15 years agowinealsa.drv: ALSA_PeekRingMessage() is not used anymore so remove it.
Francois Gouget [Sat, 7 Feb 2009 15:07:37 +0000 (16:07 +0100)] 
winealsa.drv: ALSA_PeekRingMessage() is not used anymore so remove it.

15 years agourlmon: Make create_http_protocol() static.
Francois Gouget [Sat, 7 Feb 2009 15:06:11 +0000 (16:06 +0100)] 
urlmon: Make create_http_protocol() static.

15 years agouser32: Make EditWndProcW() static, fix its documentation.
Francois Gouget [Sat, 7 Feb 2009 15:06:02 +0000 (16:06 +0100)] 
user32: Make EditWndProcW() static, fix its documentation.

15 years agouser32: Reorder some functions to avoid forward declarations in edit.c.
Francois Gouget [Sat, 7 Feb 2009 15:05:33 +0000 (16:05 +0100)] 
user32: Reorder some functions to avoid forward declarations in edit.c.

15 years agouser32: Remove unneeded forward declarations in edit.c.
Francois Gouget [Sat, 7 Feb 2009 15:05:22 +0000 (16:05 +0100)] 
user32: Remove unneeded forward declarations in edit.c.

15 years agonotepad: Make the Lithuanian resources SUBLANG_NEUTRAL.
Francois Gouget [Sat, 7 Feb 2009 15:04:23 +0000 (16:04 +0100)] 
notepad: Make the Lithuanian resources SUBLANG_NEUTRAL.

15 years agorichedit: Removed ME_StrRelPos, ME_StrRelPos2, & ME_PosToVPos functions.
Dylan Smith [Sat, 7 Feb 2009 18:21:29 +0000 (13:21 -0500)] 
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.

15 years agorichedit: Got rid of ME_GetCharFwd and ME_GetCharBack.
Dylan Smith [Sat, 7 Feb 2009 18:21:23 +0000 (13:21 -0500)] 
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.

15 years agorichedit: Removed ME_StrLen and ME_StrVLen field access functions.
Dylan Smith [Sat, 7 Feb 2009 18:21:17 +0000 (13:21 -0500)] 
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.

15 years agorichedit: Got rid of useless function ME_VPosToPos.
Dylan Smith [Sat, 7 Feb 2009 18:21:10 +0000 (13:21 -0500)] 
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.