* Resolves the executable path by using the global variable _wpgmptr. * * Returns 0 on success, -1 on failure. */
| 176 | * Returns 0 on success, -1 on failure. |
| 177 | */ |
| 178 | static int git_get_exec_path_wpgmptr(struct strbuf *buf) |
| 179 | { |
| 180 | int len = wcslen(_wpgmptr) * 3 + 1; |
| 181 | strbuf_grow(buf, len); |
| 182 | len = xwcstoutf(buf->buf, _wpgmptr, len); |
| 183 | if (len < 0) |
| 184 | return -1; |
| 185 | buf->len += len; |
| 186 | return 0; |
| 187 | } |
| 188 | #endif /* HAVE_WPGMPTR */ |
| 189 | |
| 190 | /* |
no test coverage detected