Chromium Code Reviews| Index: third_party/libxslt/chromium/get-file-attributes-a.patch |
| diff --git a/third_party/libxslt/chromium/get-file-attributes-a.patch b/third_party/libxslt/chromium/get-file-attributes-a.patch |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5c51464d46ee811885501031aef76d8bdae9d8c1 |
| --- /dev/null |
| +++ b/third_party/libxslt/chromium/get-file-attributes-a.patch |
| @@ -0,0 +1,13 @@ |
| +diff --git a/src/libxslt/security.c b/src/libxslt/security.c |
| +index 89de90bd3f1e..965175f79ca4 100644 |
| +--- src/libxslt/security.c |
| ++++ src/libxslt/security.c |
| +@@ -282,7 +282,7 @@ xsltCheckFilename (const char *path) |
| + #if defined(WIN32) && !defined(__CYGWIN__) |
| + DWORD dwAttrs; |
| + |
| +- dwAttrs = GetFileAttributes(path); |
| ++ dwAttrs = GetFileAttributesA(path); |
|
yosin_UTC9
2017/05/09 01:19:10
(^_^)
|
| + if (dwAttrs != INVALID_FILE_ATTRIBUTES) { |
| + if (dwAttrs & FILE_ATTRIBUTE_DIRECTORY) { |
| + return 2; |