diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-01-11 03:47:58 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-01-11 03:47:58 +0400 |
commit | 241fccaf6a113963598e5ad040e7e72c857bea00 (patch) | |
tree | fe4072418d5aefcb302350c59140783c4fe5db41 /intern/cycles/util/util_md5.cpp | |
parent | 9e1ca2858920f059c957401160d0a9b75b6ff2bf (diff) |
Fix T37817: cycles CUDA detection problem on Windows with non-ascii paths.
Diffstat (limited to 'intern/cycles/util/util_md5.cpp')
-rw-r--r-- | intern/cycles/util/util_md5.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/intern/cycles/util/util_md5.cpp b/intern/cycles/util/util_md5.cpp index 9dcd69cec99..c53fbd90c67 100644 --- a/intern/cycles/util/util_md5.cpp +++ b/intern/cycles/util/util_md5.cpp @@ -24,6 +24,7 @@ /* Minor modifications done to remove some code and change style. */ #include "util_md5.h" +#include "util_path.h" #include <string.h> #include <stdio.h> @@ -311,7 +312,7 @@ void MD5Hash::append(const uint8_t *data, int nbytes) bool MD5Hash::append_file(const string& filepath) { - FILE *f = fopen(filepath.c_str(), "rb"); + FILE *f = path_fopen(filepath, "rb"); if(!f) { fprintf(stderr, "MD5: failed to open file %s\n", filepath.c_str()); |