Kaydet (Commit) 20f2ea06 authored tarafından Matúš Kukan's avatar Matúš Kukan

fix .kmz support on Windows; no idea why this int was unsigned

Change-Id: I08fa1c3956b48bcd65edb74add010fafa17bfe82
üst 04232e01
...@@ -74,7 +74,7 @@ index d193784..3b5bdfc 100644 ...@@ -74,7 +74,7 @@ index d193784..3b5bdfc 100644
+ continue; + continue;
- FILE *fp = fopen(strFilePath.c_str(),"wb"); - FILE *fp = fopen(strFilePath.c_str(),"wb");
+ unsigned int pos = strlen(pFileName) - 1; + int pos = strlen(pFileName) - 1;
+ while (pos >= 0) { + while (pos >= 0) {
+ if (pFileName[pos] == '\\' || pFileName[pos] == '/') + if (pFileName[pos] == '\\' || pFileName[pos] == '/')
+ break; + break;
......
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