40#define ok_err(error) \
41 ok_int(GetLastError(), error)
48#define testType1_A(lpFileName, dwInitialError, hExpectedHandleValue, dwExpectedError, bExpectedNullFilename) \
50 ZeroMemory(&fd, sizeof(fd)); \
51 SetLastError((dwInitialError)); \
52 h = FindFirstFileA((lpFileName), &fd); \
53 ok(h == (hExpectedHandleValue), "FindFirstFileA returned 0x%p, expected 0x%p\n", h, (hExpectedHandleValue)); \
54 ok_err(dwExpectedError); \
55 if (bExpectedNullFilename) \
56 ok(fd.cFileName[0] == 0, "fd.cFileName != \"\"\n"); \
58 ok(fd.cFileName[0] != 0, "fd.cFileName == \"\"\n"); \
62#define testType1_W(lpFileName, dwInitialError, hExpectedHandleValue, dwExpectedError, bExpectedNullFilename) \
64 ZeroMemory(&fd, sizeof(fd)); \
65 SetLastError((dwInitialError)); \
66 h = FindFirstFileW((lpFileName), &fd); \
67 ok(h == (hExpectedHandleValue), "FindFirstFileW returned 0x%p, expected 0x%p\n", h, (hExpectedHandleValue)); \
68 ok_err(dwExpectedError); \
69 if (bExpectedNullFilename) \
70 ok(fd.cFileName[0] == 0, "fd.cFileName != \"\"\n"); \
72 ok(fd.cFileName[0] != 0, "fd.cFileName == \"\"\n"); \
76#define testType2_A(lpFileName, dwInitialError, hUnexpectedHandleValue, dwExpectedError) \
78 ZeroMemory(&fd, sizeof(fd)); \
79 SetLastError((dwInitialError)); \
80 h = FindFirstFileA((lpFileName), &fd); \
81 ok(h != (hUnexpectedHandleValue), "FindFirstFileA returned 0x%p\n", h); \
82 ok_err(dwExpectedError); \
83 ok(fd.cFileName[0] != 0, "fd.cFileName == \"\"\n"); \
87#define testType2_W(lpFileName, dwInitialError, hUnexpectedHandleValue, dwExpectedError) \
89 ZeroMemory(&fd, sizeof(fd)); \
90 SetLastError((dwInitialError)); \
91 h = FindFirstFileW((lpFileName), &fd); \
92 ok(h != (hUnexpectedHandleValue), "FindFirstFileW returned 0x%p\n", h); \
93 ok_err(dwExpectedError); \
94 ok(fd.cFileName[0] != 0, "fd.cFileName == \"\"\n"); \
98#define testType3_A(lpFileName, fInfoLevelId, fSearchOp, lpSearchFilter, dwAdditionalFlags, dwInitialError, hUnexpectedHandleValue, dwExpectedError) \
100 ZeroMemory(&fd, sizeof(fd)); \
101 SetLastError((dwInitialError)); \
102 h = FindFirstFileExA((lpFileName), (fInfoLevelId), &fd, (fSearchOp), (lpSearchFilter), (dwAdditionalFlags)); \
103 ok(h != (hUnexpectedHandleValue), "FindFirstFileExA returned 0x%p\n", h); \
104 ok_err(dwExpectedError); \
105 ok(fd.cFileName[0] != 0, "fd.cFileName == \"\"\n"); \
109#define testType3_W(lpFileName, fInfoLevelId, fSearchOp, lpSearchFilter, dwAdditionalFlags, dwInitialError, hUnexpectedHandleValue, dwExpectedError) \
111 ZeroMemory(&fd, sizeof(fd)); \
112 SetLastError((dwInitialError)); \
113 h = FindFirstFileExW((lpFileName), (fInfoLevelId), &fd, (fSearchOp), (lpSearchFilter), (dwAdditionalFlags)); \
114 ok(h != (hUnexpectedHandleValue), "FindFirstFileExW returned 0x%p\n", h); \
115 ok_err(dwExpectedError); \
116 ok(fd.cFileName[0] != 0, "fd.cFileName == \"\"\n"); \
578 ok(
b,
"Basic init of FindFiles test\n");
static void Test_FindFirstFileExA(void)
static void Test_FindFirstFileExW(void)
static CHAR baseA[MAX_PATH]
static WCHAR OSDirW[MAX_PATH]
static CHAR OSDirA[MAX_PATH]
#define testType3_W(lpFileName, fInfoLevelId, fSearchOp, lpSearchFilter, dwAdditionalFlags, dwInitialError, hUnexpectedHandleValue, dwExpectedError)
static WCHAR selfnameW[MAX_PATH]
static void Test_FindFirstFileA(void)
static void Test_FindFirstFileW(void)
static WCHAR baseW[MAX_PATH]
#define testType1_W(lpFileName, dwInitialError, hExpectedHandleValue, dwExpectedError, bExpectedNullFilename)
#define testType1_A(lpFileName, dwInitialError, hExpectedHandleValue, dwExpectedError, bExpectedNullFilename)
#define testType3_A(lpFileName, fInfoLevelId, fSearchOp, lpSearchFilter, dwAdditionalFlags, dwInitialError, hUnexpectedHandleValue, dwExpectedError)
#define testType2_W(lpFileName, dwInitialError, hUnexpectedHandleValue, dwExpectedError)
static CHAR selfnameA[MAX_PATH]
#define testType2_A(lpFileName, dwInitialError, hUnexpectedHandleValue, dwExpectedError)
char * strcat(char *DstString, const char *SrcString)
ACPI_SIZE strlen(const char *String)
char * strcpy(char *DstString, const char *SrcString)
WCHAR CurrentDirectory[1024]
#define GetCurrentDirectoryW(x, y)
#define INVALID_HANDLE_VALUE
#define ERROR_INVALID_NAME
DWORD WINAPI GetCurrentDirectoryA(IN DWORD nBufferLength, OUT LPSTR lpBuffer)
UINT WINAPI GetWindowsDirectoryA(OUT LPSTR lpBuffer, IN UINT uSize)
BOOL WINAPI SetCurrentDirectoryW(IN LPCWSTR lpPathName)
BOOL WINAPI SetCurrentDirectoryA(IN LPCSTR lpPathName)
GLboolean GLboolean GLboolean b
GLfloat GLfloat GLfloat GLfloat h
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define ERROR_FILE_NOT_FOUND
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
_CRTIMP wchar_t *__cdecl wcscat(_Inout_updates_z_(_String_length_(_Dest)+_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
_CRT_RESTORE_GCC_WARNINGS _CRT_DISABLE_GCC_WARNINGS _Check_return_ _CRTIMP _CONST_RETURN char *__cdecl strrchr(_In_z_ const char *_Str, _In_ int _Ch)
int winetest_get_mainargs(char ***pargv)
#define ERROR_PATH_NOT_FOUND