| 137 | } |
| 138 | |
| 139 | bool CUpdateRunner::DirectoryIsWritable(wchar_t * szPath) |
| 140 | { |
| 141 | wchar_t szTempFileName[MAX_PATH]; |
| 142 | UINT uRetVal = GetTempFileNameW(szPath, L"Squirrel", 0, szTempFileName); |
| 143 | if (uRetVal == 0) { |
| 144 | return false; |
| 145 | } |
| 146 | DeleteFile(szTempFileName); |
| 147 | return true; |
| 148 | } |
| 149 | |
| 150 | int CUpdateRunner::ExtractUpdaterAndRun(wchar_t* lpCommandLine, bool useFallbackDir) |
| 151 | { |
nothing calls this directly
no outgoing calls
no test coverage detected