<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    <br>
    <div class="moz-cite-prefix">On 15/9/28 下午7:51, Piotr Caban wrote:<br>
    </div>
    <blockquote cite="mid:560929D2.6070407@gmail.com" type="cite">Hi,
      <br>
      <br>
      On 09/07/15 16:21, YongHao Hu wrote:
      <br>
      <blockquote type="cite">+/*
        ?_Open_dir@sys@tr2@std@@YAPAXAAY0BAE@DPBDAAHAAW4file_type@123@@Z
        */
        <br>
        +/*
        ?_Open_dir@sys@tr2@std@@YAPEAXAEAY0BAE@DPEBDAEAHAEAW4file_type@123@@Z
        */
        <br>
        +void* __cdecl tr2_sys__Open_dir(char* target, char const* dest,
        int* err_code, enum file_type* type)
        <br>
        +{
        <br>
        +    HANDLE handle;
        <br>
        +    WIN32_FIND_DATAA data;
        <br>
        +    char temppath[MAX_PATH];
        <br>
        +    TRACE("(%s %s %p %p)\n", debugstr_a(target),
        debugstr_a(dest), err_code, type);
        <br>
        +    strcpy(temppath, dest);
        <br>
        +    strcat(temppath, "\\*.*");
        <br>
      </blockquote>
      Is native limiting the path to MAX_PATH characters? What happens
      if longer path is passed?
      <br>
      <br>
    </blockquote>
    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.<br>
    If we pass a longer invalid path, I think that it's err_code would
    be
    <meta charset="utf-8">
    ERROR_PATH_NOT_FOUND( GetLastError() )<br>
    <br>
    Thank you very much. :)<br>
  </body>
</html>