Changeset View
Changeset View
Standalone View
Standalone View
core/synctex/patches/16-use-windows-ansi-api-path-find.diff
- This file was added.
1 | Use Windows ANSI versions of the PathFind... methods | ||||
---|---|---|---|---|---|
2 | | ||||
3 | Author: Michel Ludwig <michel.ludwig@kdemail.net> | ||||
4 | | ||||
5 | | ||||
6 | Index: synctex/synctex_parser_utils.c | ||||
7 | --- synctex.orig/synctex_parser_utils.c | ||||
8 | +++ synctex/synctex_parser_utils.c | ||||
9 | @@ -187,8 +187,8 @@ void _synctex_strip_last_path_extension(char * string) { | ||||
10 | char * last_component = NULL; | ||||
11 | char * last_extension = NULL; | ||||
12 | # if defined(SYNCTEX_WINDOWS) | ||||
13 | - last_component = PathFindFileName(string); | ||||
14 | - last_extension = PathFindExtension(string); | ||||
15 | + last_component = PathFindFileNameA(string); | ||||
16 | + last_extension = PathFindExtensionA(string); | ||||
17 | if(last_extension == NULL)return; | ||||
18 | if(last_component == NULL)last_component = string; | ||||
19 | if(last_extension>last_component){/* filter out paths like "my/dir/.hidden" */ |