/reactos/sdk/lib/3rdparty/stlport/test/unit/ |
H A D | collate_facets_test.cpp | 25 const size_t size2 = sizeof(str2) / sizeof(str2[0]) - 1; in collate_facet() local 27 CPPUNIT_ASSERT( col.compare(str1, str1 + size1 - 1, str2, str2 + size2 - 1) == 0 ); in collate_facet() 28 CPPUNIT_ASSERT( col.compare(str1, str1 + size1, str2, str2 + size2) == -1 ); in collate_facet() 31 CPPUNIT_ASSERT( col.compare(str1, str1 + size1 - 2, str2, str2 + size2 - 1) == -1 ); in collate_facet() 32 CPPUNIT_ASSERT( col.compare(str1, str1 + size1 - 1, str2, str2 + size2 - 2) == 1 ); in collate_facet() 45 const size_t size2 = sizeof(str2) / sizeof(str2[0]) - 1; in collate_facet() local 48 CPPUNIT_ASSERT( col.compare(str1, str1 + size1, str2, str2 + size2) == -1 ); in collate_facet() 92 const size_t size2 = sizeof(str2) / sizeof(str2[0]) - 1; in collate_facet() local 95 CPPUNIT_ASSERT( col.compare(str1, str1 + size1, str2, str2 + size2) == -1 ); in collate_facet() 219 const size_t size2 = sizeof(str2) / sizeof(str2[0]) - 1; in collate_by_name() local [all …]
|
/reactos/modules/rostests/regtests/bugs/ |
H A D | bug3481.c | 22 SIZE size1, size2; in Test_bug3481() local 38 result = GetTextExtentPointI(hdc, agi, COUNT, &size2); in Test_bug3481() 42 ok(size1.cx == size2.cx, "Sizes don't match. size1.cx=%ld, size2.cx=%ld\n", size1.cx, size2.cx); in Test_bug3481() 43 ok(size1.cy == size2.cy, "Sizes don't match. size1.cy=%ld, size2.cy=%ld\n", size1.cy, size2.cy); in Test_bug3481() 50 result = GetTextExtentExPointI(hdc, agi, COUNT, MAXLONG, NULL, aiWidth2, &size2); in Test_bug3481() 54 ok(size1.cx == size2.cx, "Sizes don't match. size1.cx=%ld, size2.cx=%ld\n", size1.cx, size2.cx); in Test_bug3481() 55 ok(size1.cy == size2.cy, "Sizes don't match. size1.cy=%ld, size2.cy=%ld\n", size1.cy, size2.cy); in Test_bug3481()
|
/reactos/modules/rostests/winetests/msvcrt/ |
H A D | heap.c | 127 mem2 = p_aligned_realloc(mem, size2, alignment); in test_aligned_realloc() 140 mem, size2, alignment, mem2, saved); in test_aligned_realloc() 144 …ok(memcmp(mem2, mem1, min(size1, size2))==0, "_aligned_realloc(%p, %d, %d) has different data\n", … in test_aligned_realloc() 145 if (memcmp(mem2, mem1, min(size1, size2)) && winetest_debug > 1) in test_aligned_realloc() 148 for (i = 0; i < min(size1, size2); i++) in test_aligned_realloc() 167 static void test_aligned_offset_realloc(unsigned int size1, unsigned int size2, in test_aligned_offset_realloc() argument 200 mem2 = p_aligned_offset_realloc(mem, size2, alignment, offset); in test_aligned_offset_realloc() 213 mem, size2, alignment, offset, mem2, saved); in test_aligned_offset_realloc() 217 …ok(memcmp(mem2, mem1, min(size1, size2))==0, "_aligned_offset_realloc(%p, %d, %d, %d) has differen… in test_aligned_offset_realloc() 218 if (memcmp(mem2, mem1, min(size1, size2)) && winetest_debug > 1) in test_aligned_offset_realloc() [all …]
|
/reactos/modules/rostests/apitests/dbghelp/ |
H A D | data.c | 137 DWORD size, size2, res; 158 size2 = size *2; 159 buffer2 = malloc(size2); 160 res = compress(buffer2, &size2, buffer, size); 171 res = fwrite(buffer2, 1, size2, file); 176 return size2 == res;
|
/reactos/dll/directx/wine/dsound/ |
H A D | mixer.c | 845 size2 = playpos; in DSOUND_PerformMix() 849 …IDsDriverBuffer_Lock(device->hwbuf, &buf1, &size1, &buf2, &size2, device->playpos, size1+size2, 0); in DSOUND_PerformMix() 851 if (playpos && (!buf2 || !size2)) in DSOUND_PerformMix() 853 FillMemory(buf2, size2, nfiller); in DSOUND_PerformMix() 860 size2 = 0; in DSOUND_PerformMix() 863 …IDsDriverBuffer_Lock(device->hwbuf, &buf1, &size1, &buf2, &size2, device->playpos, size1+size2, 0); in DSOUND_PerformMix() 865 if (buf2 && size2) in DSOUND_PerformMix() 868 FillMemory(buf2, size2, nfiller); in DSOUND_PerformMix() 904 if (frag2 > size2) in DSOUND_PerformMix() 906 FIXME("Buffering too much! (%d, %d, %d, %d)\n", maxq, frag, size2, frag2 - size2); in DSOUND_PerformMix() [all …]
|
/reactos/dll/win32/ws2_32/src/ |
H A D | rnr.c | 713 INT size2 = Context->Unicode ? size1 * sizeof(WCHAR) : size1 * sizeof(CHAR); in NSProviderInfoFromContext() local 722 if (size2) in NSProviderInfoFromContext() 734 if ((Context->BufferUsed + size + size2) <= in NSProviderInfoFromContext() 742 if (size2) in NSProviderInfoFromContext() 750 size2); in NSProviderInfoFromContext() 761 size2, in NSProviderInfoFromContext() 782 INT size2 = Context->Unicode ? size1 * sizeof(WCHAR) : size1 * sizeof(CHAR); in NSProvidersEnumerationProc() local 786 …Used += Context->Unicode ? (sizeof(WSANAMESPACE_INFOW)+size2) : (sizeof(WSANAMESPACE_INFOA)+size2); in NSProvidersEnumerationProc()
|
/reactos/modules/rostests/winetests/kernel32/ |
H A D | volume.c | 282 UINT size, size2; in test_GetLogicalDriveStringsA() local 296 size2 = pGetLogicalDriveStringsA(2, buf); in test_GetLogicalDriveStringsA() 297 ok(size2 == size, "size2 = %d\n", size2); in test_GetLogicalDriveStringsA() 300 size2 = pGetLogicalDriveStringsA(size, buf); in test_GetLogicalDriveStringsA() 301 ok(size2 == size-1, "size2 = %d\n", size2); in test_GetLogicalDriveStringsA() 303 for(ptr = buf; ptr < buf+size2; ptr += 4) { in test_GetLogicalDriveStringsA() 316 UINT size, size2; in test_GetLogicalDriveStringsW() local 335 size2 = pGetLogicalDriveStringsW(2, buf); in test_GetLogicalDriveStringsW() 336 ok(size2 == size, "size2 = %d\n", size2); in test_GetLogicalDriveStringsW() 340 ok(size2 == size-1, "size2 = %d\n", size2); in test_GetLogicalDriveStringsW() [all …]
|
H A D | heap.c | 90 SIZE_T size, size2; in test_heap() local 500 size2 = GlobalSize(mem); in test_heap() 502 ok(size2 == 0x123, "got %lu\n", size2); in test_heap()
|
/reactos/dll/directx/wine/quartz/ |
H A D | dsoundrender.c | 127 DWORD size1, size2, playpos, writepos, old_writepos, old_playpos, adv; in DSoundRender_UpdatePositions() local 145 …oundBuffer_Lock(This->dsbuffer, old_playpos, adv, (void**)&buf1, &size1, (void**)&buf2, &size2, 0); in DSoundRender_UpdatePositions() 147 memset(buf2, wfx->wBitsPerSample == 8 ? 128 : 0, size2); in DSoundRender_UpdatePositions() 148 IDirectSoundBuffer_Unlock(This->dsbuffer, buf1, size1, buf2, size2); in DSoundRender_UpdatePositions() 269 DWORD writepos, skip = 0, free, size1, size2, ret; in DSoundRender_SendSampleData() local 306 if (size2) in DSoundRender_SendSampleData() 307 memcpy(buf2, data+size1, size2); in DSoundRender_SendSampleData() 308 IDirectSoundBuffer_Unlock(This->dsbuffer, buf1, size1, buf2, size2); in DSoundRender_SendSampleData() 309 This->writepos = (writepos + size1 + size2) % This->buf_size; in DSoundRender_SendSampleData() 311 data += size1 + size2; in DSoundRender_SendSampleData() [all …]
|
/reactos/sdk/lib/3rdparty/stlport/src/c_locale_win32/ |
H A D | c_wlocale_win32.c | 203 DWORD size2 = trim_size_t_to_DWORD(n2); in _WLocale_strcmp_aux() local 204 result = CompareStringW(lcol->lc.id, 0, s1, size1, s2, size2); in _WLocale_strcmp_aux() 208 n2 -= size2; in _WLocale_strcmp_aux()
|
H A D | c_locale_win32.c | 1093 DWORD size2 = trim_size_t_to_DWORD(n2); in _Locale_strcmp_auxA() local 1094 result = CompareStringA(lcol->lc.id, 0, s1, size1, s2, size2); in _Locale_strcmp_auxA() 1098 n2 -= size2; in _Locale_strcmp_auxA() 1112 size_t size1, size2; in _Locale_strcmp() local 1114 buf2 = __ConvertToCP(atoi(lcol->cp), __GetDefaultCP(lcol->lc.id), s2, n2, &size2); in _Locale_strcmp() 1116 result = _Locale_strcmp_auxA(lcol, buf1, size1, buf2, size2); in _Locale_strcmp()
|
/reactos/drivers/network/dd/netkvm/Common/ |
H A D | ParaNdis-Common.c | 949 ULONG size2, in AllocatePairOfBuffersOnInit() argument 959 p->DataInfo.size = size2; in AllocatePairOfBuffersOnInit() 1071 ULONG size2 = pContext->MaxPacketSize.nMaxFullSizeHwRx + in PrepareReceiveBuffers() local 1074 AllocatePairOfBuffersOnInit(pContext, size1, size2, FALSE); in PrepareReceiveBuffers() 2550 ULONG size2, in SendControlMessage() argument 2556 if (pContext->ControlData.Virtual && pContext->ControlData.size > (size1 + size2 + 16)) in SendControlMessage() 2580 if (size2) in SendControlMessage() 2582 NdisMoveMemory(pBase + offset, buffer2, size2); in SendControlMessage() 2585 sg[nOut].length = size2; in SendControlMessage() 2586 offset += size2; in SendControlMessage() [all …]
|
/reactos/modules/rostests/winetests/ntdll/ |
H A D | rtl.c | 3348 SIZE_T size1, size2; in test_RtlQueryPackageIdentity() local 3360 size1 = size2 = MAX_PATH * sizeof(WCHAR); in test_RtlQueryPackageIdentity() 3361 status = pRtlQueryPackageIdentity((HANDLE)~(ULONG_PTR)3, buf1, &size1, buf2, &size2, NULL); in test_RtlQueryPackageIdentity() 3387 size1 = size2 = MAX_PATH * sizeof(WCHAR); in test_RtlQueryPackageIdentity() 3388 status = pRtlQueryPackageIdentity(token, buf1, &size1, buf2, &size2, NULL); in test_RtlQueryPackageIdentity() 3397 ok(size2 >= sizeof(WCHAR) && !(size2 % sizeof(WCHAR)), "Unexpected size2 = %lu\n", size2); in test_RtlQueryPackageIdentity() 3398 … ok(buf2[size2 / sizeof(WCHAR) - 1] == 0, "Expected buf2[%lu] == 0\n", size2 / sizeof(WCHAR) - 1); in test_RtlQueryPackageIdentity()
|
/reactos/dll/win32/avifil32/ |
H A D | editstream.c | 196 LONG size1, size2, start1, start2; in AVIFILE_FormatsEqual() local 206 if (FAILED(AVIStreamFormatSize(avi2, start2, &size2))) in AVIFILE_FormatsEqual() 208 if (size1 != size2) in AVIFILE_FormatsEqual()
|
/reactos/dll/win32/setupapi/ |
H A D | install.c | 2287 DWORD size2; in compare_files() local 2290 ReadFile(file2, buffer2, sizeof(buffer2), &size2, NULL) ) in compare_files() 2293 if (size1 != size2) in compare_files() 2294 return size1 > size2 ? 1 : -1; in compare_files()
|
/reactos/modules/rostests/winetests/gdi32/ |
H A D | font.c | 4945 DWORD size, size2; in test_GetCharacterPlacement() local 4960 size2 = GetCharacterPlacementA(hdc, "Wine Test", 9, 0, NULL, 0); in test_GetCharacterPlacement() 4961 ok(size2, "GetCharacterPlacementA failed!\n"); in test_GetCharacterPlacement() 4962 ok(size == size2, "GetCharacterPlacementA returned different result: %u vs %u\n", size2, size); in test_GetCharacterPlacement() 4964 size2 = GetCharacterPlacementA(hdc, "Wine Test", 9, 1024, NULL, GCP_REORDER); in test_GetCharacterPlacement() 4965 ok(size2, "GetCharacterPlacementA failed!\n"); in test_GetCharacterPlacement() 4966 ok(size == size2, "GetCharacterPlacementA returned different result: %u vs %u\n", size2, size); in test_GetCharacterPlacement() 4970 ok(size == size2, "GetCharacterPlacementA returned different result: %u vs %u\n", size2, size); in test_GetCharacterPlacement()
|
/reactos/dll/win32/urlmon/ |
H A D | sec_mgr.c | 2065 HRESULT WINAPI CompareSecurityIds(BYTE *secid1, DWORD size1, BYTE *secid2, DWORD size2, DWORD reser… in CompareSecurityIds() argument 2067 FIXME("(%p %d %p %d %x)\n", secid1, size1, secid2, size2, reserved); in CompareSecurityIds()
|
/reactos/dll/directx/wine/d3dx9_36/ |
H A D | mesh.c | 660 UINT size1 = 0, size2 = 0; in declaration_equals() local 664 while (declaration2[size2].Stream != 0xff) size2++; in declaration_equals() 667 if (size1 != size2) in declaration_equals()
|
/reactos/modules/rostests/winetests/wininet/ |
H A D | http.c | 6995 DWORD size, size2, flags, err; in test_secure_connection() local 7069 size2 = sizeof(certstr2); in test_secure_connection() 7070 ret = InternetQueryOptionA(req, INTERNET_OPTION_SECURITY_CERTIFICATE, certstr2, &size2); in test_secure_connection() 7073 ok(size == size2, "expected same size\n"); in test_secure_connection()
|
/reactos/modules/rostests/winetests/d3drm/ |
H A D | d3drm.c | 163 DWORD size, size2; in test_class_name_() local 176 size = size2 = !!*name; in test_class_name_() 179 ok_(__FILE__, line)(size == size2, "Got size %u.\n", size); in test_class_name_()
|