* tls_pbuf.cc (tmp_pathbuf::w_get): Report what's failing when too many buffers
are in use.
This commit is contained in:
		| @@ -1,3 +1,8 @@ | |||||||
|  | 2010-06-21  Christopher Faylor  <me+cygwin@cgf.cx> | ||||||
|  |  | ||||||
|  | 	* tls_pbuf.cc (tmp_pathbuf::w_get): Report what's failing when too many | ||||||
|  | 	buffers are in use. | ||||||
|  |  | ||||||
| 2010-06-17  Corinna Vinschen  <corinna@vinschen.de> | 2010-06-17  Corinna Vinschen  <corinna@vinschen.de> | ||||||
|  |  | ||||||
| 	* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Fetch stat | 	* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Fetch stat | ||||||
|   | |||||||
| @@ -50,7 +50,7 @@ PWCHAR | |||||||
| tmp_pathbuf::w_get () | tmp_pathbuf::w_get () | ||||||
| { | { | ||||||
|   if (tls_pbuf.w_cnt >= TP_NUM_W_BUFS) |   if (tls_pbuf.w_cnt >= TP_NUM_W_BUFS) | ||||||
|     api_fatal ("Internal error: TP_NUM_W_BUFS too small."); |     api_fatal ("Internal error: TP_NUM_W_BUFS too small %d >= %d.", tls_pbuf.w_cnt, TP_NUM_W_BUFS); | ||||||
|   if (!tls_pbuf.w_buf[tls_pbuf.w_cnt] |   if (!tls_pbuf.w_buf[tls_pbuf.w_cnt] | ||||||
|       && !(tls_pbuf.w_buf[tls_pbuf.w_cnt] |       && !(tls_pbuf.w_buf[tls_pbuf.w_cnt] | ||||||
| 	   = (PWCHAR) malloc (NT_MAX_PATH * sizeof (WCHAR)))) | 	   = (PWCHAR) malloc (NT_MAX_PATH * sizeof (WCHAR)))) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user