| 290 | } |
| 291 | |
| 292 | bool Create() |
| 293 | { |
| 294 | AutoCrit autoCrit(mCritSect); |
| 295 | if (mFP != NULL) |
| 296 | return false; |
| 297 | |
| 298 | WCHAR wPath[4096]; |
| 299 | wPath[0] = 0; |
| 300 | ::GetTempPathW(4096, wPath); |
| 301 | |
| 302 | WCHAR wFilePath[4096]; |
| 303 | wFilePath[0] = 0; |
| 304 | GetTempFileNameW(wPath, L"bftmp", 0, wFilePath); |
| 305 | |
| 306 | mFilePath = UTF8Encode(wFilePath); |
| 307 | mFP = _wfopen(wFilePath, L"w+D"); |
| 308 | return mFP != NULL; |
| 309 | } |
| 310 | |
| 311 | String GetContents() |
| 312 | { |
no outgoing calls
no test coverage detected