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"); \ 523 ok(
b,
"Basic init of FindFiles test\n");
static WCHAR selfnameW[MAX_PATH]
char * strcat(char *DstString, const char *SrcString)
WCHAR CurrentDirectory[1024]
ACPI_SIZE strlen(const char *String)
#define GetCurrentDirectoryW(x, y)
#define INVALID_HANDLE_VALUE
_Check_return_ _CRTIMP _CONST_RETURN char *__cdecl strrchr(_In_z_ const char *_Str, _In_ int _Ch)
static WCHAR OSDirW[MAX_PATH]
#define ERROR_BAD_NETPATH
GLfloat GLfloat GLfloat GLfloat h
static CHAR selfnameA[MAX_PATH]
#define testType2_W(lpFileName, dwInitialError, hUnexpectedHandleValue, dwExpectedError)
#define ERROR_FILE_NOT_FOUND
GLboolean GLboolean GLboolean b
static void Test_FindFirstFileA(void)
int winetest_get_mainargs(char ***pargv)
#define testType2_A(lpFileName, dwInitialError, hUnexpectedHandleValue, dwExpectedError)
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
BOOL WINAPI SetCurrentDirectoryA(IN LPCSTR lpPathName)
static void Test_FindFirstFileW(void)
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
BOOL WINAPI SetCurrentDirectoryW(IN LPCWSTR lpPathName)
DWORD WINAPI GetCurrentDirectoryA(IN DWORD nBufferLength, OUT LPSTR lpBuffer)
UINT WINAPI GetWindowsDirectoryA(OUT LPSTR lpBuffer, IN UINT uSize)
_CRTIMP wchar_t *__cdecl wcscat(_Inout_updates_z_(_String_length_(_Dest)+_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
#define testType1_W(lpFileName, dwInitialError, hExpectedHandleValue, dwExpectedError, bExpectedNullFilename)
VERSIONHELPERAPI IsWindows7OrGreater()
#define testType1_A(lpFileName, dwInitialError, hExpectedHandleValue, dwExpectedError, bExpectedNullFilename)
static WCHAR baseW[MAX_PATH]
char * strcpy(char *DstString, const char *SrcString)
static CHAR baseA[MAX_PATH]
#define ERROR_INVALID_NAME
#define ERROR_PATH_NOT_FOUND
static CHAR OSDirA[MAX_PATH]