Go to the source code of this file.
◆ CheckBuffer()
Definition at line 12 of file GetCurrentDirectory.c.
16{
19
22 {
25 }
27}
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
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
Referenced by TestGetCurrentDirectoryA(), and TestGetCurrentDirectoryW().
◆ CheckStringBufferA()
Definition at line 31 of file GetCurrentDirectory.c.
36{
41
43 {
46 }
47
50 {
53 }
54
55 ok(Chars[
i] == 0,
"Expected null terminator, found %x at offset %lu\n", Chars[
i], (
ULONG)
i);
57
59 if (UChars[
i] !=
Fill)
60 {
63 }
65}
ACPI_SIZE strlen(const char *String)
void Fill(HDC hdc, LONG x, LONG y, COLORREF color)
_In_ ULONG _In_ ULONG _In_ ULONG Length
Referenced by TestGetCurrentDirectoryA().
◆ CheckStringBufferW()
Definition at line 69 of file GetCurrentDirectory.c.
74{
79
81 {
84 }
85
88 {
91 }
92
93 ok(Chars[
i] == 0,
"Expected null terminator, found %x at offset %lu\n", Chars[
i], (
ULONG)
i);
95
97
99 if (UChars[
i] !=
Fill)
100 {
103 }
105}
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
Referenced by TestGetCurrentDirectoryW().
◆ START_TEST()
Definition at line 211 of file GetCurrentDirectory.c.
212{
215}
static VOID TestGetCurrentDirectoryA(VOID)
static VOID TestGetCurrentDirectoryW(VOID)
◆ TestGetCurrentDirectoryA()
static VOID TestGetCurrentDirectoryA |
( |
VOID |
| ) |
|
|
static |
Definition at line 109 of file GetCurrentDirectory.c.
110{
115
118
121
126 ok(Okay,
"CheckStringBufferA failed\n");
127
132 ok(Okay,
"CheckBuffer failed\n");
133
138 ok(Okay,
"CheckBuffer failed\n");
139
144 ok(Okay,
"CheckBuffer failed\n");
145
150 ok(Okay,
"CheckBuffer failed\n");
151
156 ok(Okay,
"CheckStringBufferA failed\n");
157}
static BOOLEAN CheckBuffer(const VOID *Buffer, SIZE_T Size, UCHAR Value)
static BOOLEAN CheckStringBufferA(const VOID *Buffer, SIZE_T Size, PCSTR Expected, UCHAR Fill)
DWORD WINAPI GetCurrentDirectoryA(IN DWORD nBufferLength, OUT LPSTR lpBuffer)
BOOL WINAPI SetCurrentDirectoryA(IN LPCSTR lpPathName)
#define RtlFillMemory(Dest, Length, Fill)
DWORD WINAPI GetLastError(void)
Referenced by START_TEST().
◆ TestGetCurrentDirectoryW()
static VOID TestGetCurrentDirectoryW |
( |
VOID |
| ) |
|
|
static |
Definition at line 161 of file GetCurrentDirectory.c.
162{
167
170
173
178 ok(Okay,
"CheckStringBufferW failed\n");
179
184 ok(Okay,
"CheckBuffer failed\n");
185
190 ok(Okay,
"CheckBuffer failed\n");
191
196 ok(Okay,
"CheckBuffer failed\n");
197
202 ok(Okay,
"CheckBuffer failed\n");
203
208 ok(Okay,
"CheckStringBufferW failed\n");
209}
static BOOLEAN CheckStringBufferW(const VOID *Buffer, SIZE_T Size, PCWSTR Expected, UCHAR Fill)
#define GetCurrentDirectoryW(x, y)
BOOL WINAPI SetCurrentDirectoryW(IN LPCWSTR lpPathName)
Referenced by START_TEST().