Hi,
On 09/07/15 16:21, YongHao Hu wrote:
Is native limiting the path to MAX_PATH characters? What happens if longer path is passed?
This doesn't look right. Probably some other function is returning different error on windows and on wine (or different function is used internally). Anyway I don't think we need to be compatible here (at least as long as there's no application that depends on it).
You're leaking handle here.
Thanks, Piotr
Hi,
On 15/9/28 下午7:51, Piotr Caban wrote:
As far as I know, we can not create a file or directory when their path longer than MAX_PATH on Windows, so it is impossible to pass a longer valid path to tr2_sys__Open_dir. If we pass a longer invalid path, I think that it's err_code would be ERROR_PATH_NOT_FOUND( GetLastError() )
Thank you very much. :)
On 09/29/15 18:03, YongHao Hu wrote:
You can specify a longer path by prepending it with "\?" prefix. Even if longer paths are not supported you should probably detect that case instead of possibly crashing in strcpy call.
Thanks, Piotr