Commit Graph

1464 Commits

Author SHA1 Message Date
Ulrich Czekalla 0762f6726c riched20: Add check to ensure iob is a valid index into the object array.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-01-18 22:46:37 +01:00
Michael Stefaniuc 12821cbb75 riched20: Use a wchar string literal for the array of neutral chars.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-19 21:23:22 +01:00
Michael Stefaniuc 80620171ec riched20: Use zero terminated wchar strings.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-19 21:23:22 +01:00
Michael Stefaniuc d08852d835 riched20: Use wide-char string literals in a struct initialization.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-19 21:23:22 +01:00
Michael Stefaniuc 60b2167901 riched20: Use wide-char string literals.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-19 21:23:22 +01:00
Huw Davies 3f0c4d5c72 riched20: Move the code to clear the cell bottom out of the loop.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-09 10:45:53 +01:00
Huw Davies 378a86b8b6 riched20: Simplify search for the cell to delete.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-09 10:45:51 +01:00
Huw Davies cb9353bca9 riched20: Use row and para ptrs in the cursor up/down handler.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-09 10:45:49 +01:00
Huw Davies ab95fb31fc riched20: Use row ptrs in the page up/down handlers.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-09 10:45:47 +01:00
Huw Davies 47228b7db4 riched20: Pass a para or run ptr to the char ofs propagation function.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-09 10:45:45 +01:00
Huw Davies 00fa9a9546 riched20: Use paragraph and run ptrs in the cursor structure.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-06 12:02:01 +01:00
Huw Davies 12dd2d5d78 riched20: Add next / prev run from cursor helpers.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-06 12:01:59 +01:00
Huw Davies 3131f91940 riched20: Use cell ptrs to link the cells.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-06 12:01:57 +01:00
Huw Davies b7084cd7e3 riched20: Use cell ptrs in the paragraph splitting and joining functions.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-06 12:01:55 +01:00
Huw Davies b692fb5e08 riched20: Use more cell helpers in some of the table functions.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-06 12:01:52 +01:00
Huw Davies eb6b188a94 riched20: Pass paragraph ptrs to the para marking function.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-04 09:06:43 +01:00
Huw Davies c8fef26884 riched20: Use para_in_table() instead of IsInTable().
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-04 09:06:41 +01:00
Huw Davies 507f517094 riched20: Return a row ptr from the row creation function.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-04 09:06:39 +01:00
Huw Davies 3c10a3eff7 riched20: Use a cell helper in the split paragraph undo function.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-04 09:06:38 +01:00
Huw Davies 04158801f9 riched20: Use a paragraph ptr in the rtf writer function.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-04 09:06:35 +01:00
Huw Davies 8b613eb2ed riched20: Use a paragraph ptr in the clipboard get text function.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-03 11:21:27 +01:00
Huw Davies b132d8bf05 riched20: Use para and row ptrs in the row number from offset function.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-03 11:21:26 +01:00
Huw Davies 410dceb939 riched20: Remove unused ME_RowStart().
Its functionality has been replaced with row_from_cursor().

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-03 11:21:24 +01:00
Huw Davies 27f8e16bde riched20: Use run ptrs in the text retrieval function.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-03 11:21:22 +01:00
Huw Davies cfdfe51785 riched20: Use row ptrs in the EM_GETLINELENGTH handler.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-03 11:21:20 +01:00
Huw Davies d55bc24001 riched20: Use run ptrs in the EM_GETLINECOUNT handler.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-02 16:01:23 +01:00
Huw Davies fe2fd44e0a riched20: Return a row ptr from the row from row number function.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-02 16:01:23 +01:00
Huw Davies c5b1378756 riched20: Use para and row ptrs in the EM_GETFIRSTVISIBLELINE handler.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-02 16:01:23 +01:00
Huw Davies 8046b5bc96 riched20: Use a run ptr in the link notify function.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-02 16:01:23 +01:00
Huw Davies 50c8fe4560 riched20: Use paragraph ptrs in the WM_CHAR handler.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-02 16:01:23 +01:00
Huw Davies cdd507eb2b riched20: Use paragraph and run ptrs in the find text function.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-30 10:35:41 +01:00
Huw Davies 0c9d5ebf5c riched20: Use a run ptr in the rtf row handler.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-30 10:35:39 +01:00
Huw Davies a0f0dc1c5b riched20: Use paragraph ptrs in the enter handler.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-30 10:35:37 +01:00
Huw Davies 352e7664d8 riched20: Use paragraph ptrs in the selection link check function.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-30 10:35:35 +01:00
Huw Davies 2bc67cfcf9 riched20: Use a paragraph ptr in the stream in function.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-30 10:35:33 +01:00
Huw Davies f2d770d491 riched20: Remove the table corruption check function.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-29 20:19:13 +01:00
Huw Davies 3ba419081a riched20: Use paragraph ptrs in the table move from row start function.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-29 20:19:13 +01:00
Huw Davies 963075706d riched20: Use cell ptrs in the table tab handler.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-29 20:19:13 +01:00
Huw Davies 77895ecdde riched20: Use cell ptrs in the append table row function.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-29 20:19:13 +01:00
Huw Davies 20b4a03553 riched20: Use para and run ptrs in the table deletion function.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-29 20:19:13 +01:00
Huw Davies 5d179e4b39 riched20: Use a helper to retrieve the first run.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-28 09:53:50 +01:00
Huw Davies 6b9b7b2d0b riched20: Use the paragraph from the cursor.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-28 09:53:48 +01:00
Huw Davies f9a82574c9 riched20: Use a helper to find the next run.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-28 09:53:46 +01:00
Huw Davies b3b3624079 riched20: Use a helper function to find the first row.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-28 09:53:44 +01:00
Huw Davies da50829128 riched20: Pass para ptrs to the various para selection functions.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-28 09:53:39 +01:00
Huw Davies 9908c5d3c4 riched20: Fix the struct size check in the para fmt retrieval function.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-27 09:51:55 +01:00
Huw Davies 1abbb78a09 riched20: Use row and para ptrs in the ensure visible function.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-27 09:51:53 +01:00
Huw Davies 30ad0b936a riched20: Use a row ptr in the run drawing function.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-27 09:51:50 +01:00
Huw Davies 0d50e0182d riched20: Use a run helper in the delete text function.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-27 09:51:47 +01:00
Huw Davies 245b9231c5 riched20: Use row and para helpers in the extend selection function.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-27 09:51:44 +01:00