6 Feb
2014
6 Feb
'14
7:56 a.m.
Zhenbo Li <litimetal(a)gmail.com> wrote:
+ strcpy(buffer2, nonexistent); + handle = CreateFileA(buffer2, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, 0, 0 );
There is no need for a strcpy().
+ ok(handle != INVALID_HANDLE_VALUE, "failed to create a file\n"); + handle = FindFirstFileA(buffer2, &data); + ok(handle != FindFirstFileA, "failed to find an existent file\n");
It would be useful to actually test what FindFirstFileA() returns. Also not leaking the handle *twice* would be a bonus point. -- Dmitry.