Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 6b259d70 authored by Michel Ludwig's avatar Michel Ludwig

Use Windows ANSI versions of the PathFind... methods

Differential Revision: https://phabricator.kde.org/D9937
parent daaa0844
Use Windows ANSI versions of the PathFind... methods
Author: Michel Ludwig <michel.ludwig@kdemail.net>
Index: synctex/synctex_parser_utils.c
--- synctex.orig/synctex_parser_utils.c
+++ synctex/synctex_parser_utils.c
@@ -187,8 +187,8 @@ void _synctex_strip_last_path_extension(char * string) {
char * last_component = NULL;
char * last_extension = NULL;
# if defined(SYNCTEX_WINDOWS)
- last_component = PathFindFileName(string);
- last_extension = PathFindExtension(string);
+ last_component = PathFindFileNameA(string);
+ last_extension = PathFindExtensionA(string);
if(last_extension == NULL)return;
if(last_component == NULL)last_component = string;
if(last_extension>last_component){/* filter out paths like "my/dir/.hidden" */
......@@ -8,3 +8,4 @@
13-fix-Wundef-warnings.diff
14-fix-misc-compiler-warnings.diff
15-prevent-leaks-and-segfault.diff
16-use-windows-ansi-api-path-find.diff
......@@ -187,8 +187,8 @@ void _synctex_strip_last_path_extension(char * string) {
char * last_component = NULL;
char * last_extension = NULL;
# if defined(SYNCTEX_WINDOWS)
last_component = PathFindFileName(string);
last_extension = PathFindExtension(string);
last_component = PathFindFileNameA(string);
last_extension = PathFindExtensionA(string);
if(last_extension == NULL)return;
if(last_component == NULL)last_component = string;
if(last_extension>last_component){/* filter out paths like "my/dir/.hidden" */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment