mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-17 23:11:48 +00:00
20 lines
760 B
Diff
20 lines
760 B
Diff
|
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" */
|