Klaus Demo nginx / 1cf4988
fix r1981 on win32 Igor Sysoev 13 years ago
1 changed file(s) with 8 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
363363 ngx_int_t
364364 ngx_open_glob(ngx_glob_t *gl)
365365 {
366 u_char *p;
367 size_t len;
366 u_char *p;
367 size_t len;
368 ngx_err_t err;
368369
369370 gl->dir = FindFirstFile((const char *) gl->pattern, &gl->finddata);
370371
371372 if (gl->dir == INVALID_HANDLE_VALUE) {
372373
373 if (ngx_errno == ERROR_FILE_NOT_FOUND && gl->test) {
374 err = ngx_errno;
375
376 if ((err == ERROR_FILE_NOT_FOUND || err == ERROR_PATH_NOT_FOUND)
377 && gl->test)
378 {
374379 gl->no_match = 1;
375380 return NGX_OK;
376381 }