| 258 | /* for windows, serch first for .exe */ |
| 259 | char * _omFindExec (const char *name, char* exec); |
| 260 | char* omFindExec(const char *name, char* exec) |
| 261 | { |
| 262 | |
| 263 | if (strstr(name, ".exe") == NULL) |
| 264 | { |
| 265 | char buf[MAXPATHLEN]; |
| 266 | char* ret; |
| 267 | strcpy(buf, name); |
| 268 | strcat(buf, ".exe"); |
| 269 | ret = _omFindExec(buf, exec); |
| 270 | if (ret != NULL) return ret; |
| 271 | } |
| 272 | return _omFindExec(name, exec); |
| 273 | } |
| 274 | #else |
| 275 | #define _omFindExec omFindExec |
| 276 | #endif |
no test coverage detected