<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/7/6 下午4:46, Piotr Caban wrote:<br>
    </div>
    <blockquote cite="mid:559A4082.30109@gmail.com" type="cite">On
      07/05/15 20:49, YongHao Hu wrote:
      <br>
      <blockquote type="cite">+    if(!strcmp(old_path, new_path) ||
        MoveFileExA(old_path, new_path, MOVEFILE_COPY_ALLOWED))
        <br>
      </blockquote>
      The comparison of paths doesn't look right. Why have you added it?
      <br>
      <br>
    </blockquote>
    The test  { "tr2_test_dir\\f1", "tr2_test_dir\\f1", ERROR_SUCCESS }
    in wine's CopyFileA function set LastError as
    <meta charset="utf-8">
    ERROR_ALREADY_EXISTS, so I just simply handled it by comparison of
    paths.<br>
    Your comment is true and the implementation was wrong. In fact,
    CopyFIleA doesn't change Last_error in this case.<br>
    Thus, we don't need the comparison of paths here. Ps: I think I will
    add to_do tests of these functions. : P<br>
    Thank you.
    <meta charset="utf-8">
    <br>
    <br>
    <blockquote cite="mid:559A4082.30109@gmail.com" type="cite">Cheers,
      <br>
      Piotr
      <br>
    </blockquote>
    <br>
  </body>
</html>