Mercurial > hg > orthanc
comparison Core/HttpServer/FilesystemHttpSender.cpp @ 219:5459f05b4f54
fix for windows
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 29 Nov 2012 14:08:27 +0100 |
parents | 1ac3aacd10a5 |
children | 098661837a96 |
comparison
equal
deleted
inserted
replaced
218:0200cd330582 | 219:5459f05b4f54 |
---|---|
48 return Toolbox::GetFileSize(path_.string()); | 48 return Toolbox::GetFileSize(path_.string()); |
49 } | 49 } |
50 | 50 |
51 bool FilesystemHttpSender::SendData(HttpOutput& output) | 51 bool FilesystemHttpSender::SendData(HttpOutput& output) |
52 { | 52 { |
53 FILE* fp = fopen(path_.c_str(), "rb"); | 53 FILE* fp = fopen(path_.string().c_str(), "rb"); |
54 if (!fp) | 54 if (!fp) |
55 { | 55 { |
56 return false; | 56 return false; |
57 } | 57 } |
58 | 58 |