Ticket #6597: 6597-backend-win32.patch
File 6597-backend-win32.patch, 2.4 KB (added by , 15 years ago) |
---|
-
libs/libmyth/mythcontext.cpp
1547 1547 { 1548 1548 #if defined(CONFIG_DARWIN) || (__FreeBSD__) || defined(__OpenBSD__) 1549 1549 const char *command = "ps -ax | grep -i mythbackend | grep -v grep > /dev/null"; 1550 #elif defined USING_MINGW 1551 const char *command = "tasklist | find /i \"mythbackend.exe\" "; 1550 1552 #else 1551 1553 const char *command = "ps -ae | grep mythbackend > /dev/null"; 1552 1554 #endif -
libs/libmyth/util.cpp
1118 1118 if (GetTempFileNameA(temppath, "mth", 0, tempfilename)) 1119 1119 { 1120 1120 if (dir) 1121 { 1122 // GetTempFileNameA creates the file, so delete it before mkdir 1123 unlink(tempfilename); 1121 1124 ret = mkdir(tempfilename); 1125 } 1122 1126 else 1123 1127 ret = open(tempfilename, O_CREAT | O_RDWR, S_IREAD | S_IWRITE); 1124 1128 } -
libs/libmythui/mythsystem.cpp
178 178 VERBOSE(VB_IMPORTANT, 179 179 (LOC_ERR + "WaitForSingleObject() failed because %1") 180 180 .arg(::GetLastError())); 181 DWORD exitcode = GENERIC_EXIT_OK; 182 if (!GetExitCodeProcess(pi.hProcess, &exitcode)) 183 VERBOSE(VB_IMPORTANT, (LOC_ERR + 184 "GetExitCodeProcess() failed because %1") 185 .arg(::GetLastError())); 181 186 CloseHandle(pi.hProcess); 182 187 CloseHandle(pi.hThread); 183 return GENERIC_EXIT_OK; 188 // VERBOSE(VB_IMPORTANT, cmd + QString(" returned %1").arg(exitcode)); 189 return exitcode; 184 190 } 185 191 #endif 186 192 return GENERIC_EXIT_NOT_OK; -
libs/libmythtv/ThreadedFileWriter.cpp
161 161 } 162 162 else 163 163 { 164 #ifdef USING_MINGW 165 _setmode(fd, _O_BINARY); 166 #endif 164 167 buf = new char[TFW_DEF_BUF_SIZE + 1024]; 165 168 bzero(buf, TFW_DEF_BUF_SIZE + 64); 166 169