Commit Graph

2211 Commits

Author SHA1 Message Date
Sebastian Lackner
e5e4ef07b6 kernel32/tests: Add missing HeapFree() in doChildren(). (Valgrind). 2014-06-23 10:12:18 +02:00
Sebastian Lackner
87a78ed878 kernel32: Fix a valgrind warning in format_add_char(). (Valgrind). 2014-06-23 10:12:09 +02:00
Sebastian Lackner
15fa6111af kernel32: Process OutputDebugString events like regular exceptions. 2014-06-20 16:30:20 +02:00
Alexandre Julliard
b0953a09bd kernel32: Only try to load krnl386 in native applications. 2014-06-18 18:36:21 +02:00
Austin English
fd6c5490df kernel32: Add a stub for UnregisterApplicationRestart. 2014-06-18 16:31:14 +02:00
Alexandre Julliard
c7eacd9e83 kernel32/tests: Silence some noisy traces. 2014-06-17 10:58:46 +02:00
Sebastian Lackner
1b3d67aace kernel32: Raise DBG_PRINTEXCEPTION_C exception in OutputDebugStringA. 2014-06-17 10:58:28 +02:00
Austin English
bdc0099eb4 kernel32: Add DECLSPEC_HOTPATCH to SetFilePointer. 2014-06-17 10:35:15 +02:00
Sebastian Lackner
270d66efc7 kernel32: Update VirtualAddress of resource section in write_raw_resources. 2014-06-17 09:04:15 +02:00
Nikolay Sivov
50ad765cd6 kernel32: Added a message for WSAECONNRESET. 2014-06-16 09:33:13 +02:00
Akihiro Sagawa
80695cde4f kernel32: Return correct buffer size when returning DBCS characters. 2014-06-12 18:25:06 +02:00
Akihiro Sagawa
89a558fe8f kernel32: Avoid uninitialised value read in GetCalendarInfoA. 2014-06-12 18:24:41 +02:00
Bruno Jesus
515b8bebb6 kernel32: Limit the environment variable size to 32767 in GetEnvironmentVariable. 2014-06-12 18:11:42 +02:00
Michael Müller
9602fa7a93 server: Fix return value for FSCTL_PIPE_WAIT if pipe does not exist. 2014-06-11 13:07:11 +02:00
Nikolay Sivov
5a8d73283c ntdll: Fix LdrLockLoaderLock()/LdrUnlockLoaderLock() on 64bit. 2014-06-11 13:05:39 +02:00
Jacek Caban
5ceb22714e ntdll: Use MAP_PRIVATE for copy on write mappings. 2014-05-13 12:27:32 +02:00
Jacek Caban
ea950ac7cf kernel32/tests: Added more shared memory tests, exposing MAP_PRIVATE mapping for read only mapping problem. 2014-05-08 18:27:51 +02:00
Huw Davies
56019a4dc6 kernel32/tests: Fix test for win8 heap layout. 2014-05-02 13:45:00 +02:00
Frédéric Delanoy
2e5cb7aac8 Assorted spelling/grammar fixes. 2014-04-30 18:34:20 +02:00
Erich E. Hoover
32da6626f5 kernel32: Allow CompareStringEx LINGUISTIC_IGNORECASE flag. 2014-04-17 10:48:07 +02:00
Erich E. Hoover
b0935ab811 kernel32: Allow CompareStringEx NORM_LINGUISTIC_CASING flag. 2014-04-17 10:48:04 +02:00
Erich E. Hoover
4b949510fb kernel32/tests: Add a variety of tests for CompareStringEx. 2014-04-17 10:47:58 +02:00
Dmitry Timoshkov
e03a3fe509 kernel32: Add a workaround for broken apps that pass negative values to ReadConsole. 2014-04-16 10:54:15 +02:00
Dmitry Timoshkov
2451d263de kernel32: Handle memory allocation failure in ReadConsoleA. 2014-04-15 09:46:29 +02:00
Nikolay Sivov
00ff2ed81e kernel32/tests: Added missing comma (Coverity). 2014-04-15 09:45:18 +02:00
Dmitry Timoshkov
c3ee3da58a kernel32: Filter out console handles in GetFileSize. 2014-04-14 10:30:30 +02:00
Piotr Caban
4fca169301 server: Don't debug children when DEBUG_PROCESS and DEBUG_ONLY_THIS_PROCESS flags are passed to CreateProcess. 2014-04-09 13:15:58 +02:00
Sebastian Lackner
7ba43b2fd1 kernel32: Forward RtlInstallFunctionTableCallback to ntdll. 2014-04-08 19:23:19 +02:00
Sebastian Lackner
0e1b381503 kernel32: Silence SetWaitableTimerEx fixme message. 2014-04-03 11:10:49 +02:00
Nikolay Sivov
b82b1306a4 kernel32: Added QueryUnbiasedInterruptTime(). 2014-04-02 15:50:09 +02:00
Jacek Caban
e168cd28db kernel32: Skip reserved TLS tests on WinXP SP1. 2014-03-31 15:28:55 +02:00
Alexandre Julliard
598c5816d9 kernel32: Don't allocate FLS index 0. 2014-03-28 17:46:03 +01:00
Jacek Caban
93920c3893 ntdll: Reserve TLS slot 0 for broken apps that compare index to 0 instead of TLS_OUT_OF_INDEXES. 2014-03-28 16:19:55 +01:00
Alexandre Julliard
7420b7fe73 kernel32/tests: Move allocation tests into heap.c. 2014-03-27 16:16:04 +01:00
Alexandre Julliard
395df1aa2d ntdll: Heap handles should be 64K-aligned. 2014-03-26 11:24:30 +01:00
Nikolay Sivov
467b769623 kernel32: Added SetWaitableTimerEx(). 2014-03-24 11:38:22 +01:00
Nikolay Sivov
975abdea7f kernel32: Added WerUnregisterMemoryBlock() stub. 2014-03-20 10:42:01 +01:00
Austin English
77bd74fa25 kernel32: Improve GetNumaHighestNodeNumber stub. 2014-03-18 19:05:33 +01:00
Alexandre Julliard
e64189aa55 kernel32/tests: Add more Unicode digit ranges. 2014-03-07 13:37:14 +01:00
Vincent Povirk
49f3b4282d kernel32: Cache locale info from the registry. 2014-03-06 17:18:51 +01:00
Dmitry Timoshkov
6670bbf56f kernel32/tests: Add a test for CreateFile called with TRUNCATE_EXISTING/FILE_WRITE_DATA parameters. 2014-03-06 13:36:04 +01:00
Dmitry Timoshkov
d97e7baa66 kernel32/tests: Add some tests for CreateFile called on a directory instead of a file. 2014-03-06 13:36:04 +01:00
Francois Gouget
f1087d865b kernel32/tests: Skip some profile tests if not allowed to create files in the Windows directory. 2014-03-04 17:06:07 +01:00
Nikolay Sivov
95142cad53 kernel32: Partial implementation for GetCalendarInfoEx(). 2014-03-03 17:02:14 +01:00
André Hentschel
7f9756e1ea kernel32/tests: Remove unused assertion header. 2014-02-26 13:03:59 -06:00
Nikolay Sivov
88fc916442 ntdll: Use case-insensitive matching for typelib flags.
Spotted by Austin English.
2014-02-24 09:12:03 -06:00
Ken Thomases
ed11dc0ba3 kernel32: Fix build on newer Mac OS X. 2014-02-20 00:05:40 +01:00
Alexandre Julliard
a0d6c8c249 kernel32: Fix build on older Mac OS X. 2014-02-19 11:35:16 +01:00
Alexandre Julliard
ff08cd597d ntdll: Only allocate TLS data when resolving imports. 2014-02-17 20:16:08 +01:00
Alexandre Julliard
0f0bf58663 ntdll: Don't fixup imports for executables. 2014-02-17 20:15:44 +01:00
Alexandre Julliard
7307298ac3 ntdll: Don't fixup imports when a dll is already loaded. 2014-02-17 20:15:43 +01:00
Alexandre Julliard
a4c8943c70 kernel32/tests: Add some tests for dll import resolution. 2014-02-17 19:10:07 +01:00
Ken Thomases
a34e52cc93 kernel32: Prefer the Mach host_statistics64(HOST_VM_INFO64) API over sysctl(HW_USERMEM) to obtain free memory. 2014-02-17 11:13:27 +01:00
Ken Thomases
f40c5484fc kernel32: Use the Mach host_info(HOST_BASIC_INFO) API to obtain total RAM after trying sysctl(HW_MEMSIZE) and before HW_PHYSMEM. 2014-02-17 11:13:12 +01:00
Ken Thomases
9b7c94bc55 kernel32: Use sysctl(VM_SWAPUSAGE) to get swap sizes on BSDs, if available. 2014-02-17 11:13:00 +01:00
Ken Thomases
95df19efed kernel32: Prefer HW_MEMSIZE sysctl variable over HW_PHYSMEM, if available, since it's 64 bits. 2014-02-17 11:12:53 +01:00
Ken Thomases
6953189271 kernel32: Consolidate some duplicate variable declarations. 2014-02-17 11:12:36 +01:00
Ken Thomases
c91dd24098 kernel32: Avoid truncating 64-bit ullTotalPhys value to 32 bits when copying to ullAvailPhys, ullTotalPageFile, and ullAvailPageFile. 2014-02-17 11:12:21 +01:00
Ken Thomases
89a96db01f kernel32: Check that sysctl() call succeeded before using its output. 2014-02-17 11:12:04 +01:00
Nikolay Sivov
0a20d46801 kernel32/tests: Fix some test failures in older XP/Win2k3 versions. 2014-02-12 19:15:13 +01:00
Nikolay Sivov
ee518b5e36 kernel32/tests: Don't test last error when there's no failure. 2014-02-12 19:15:12 +01:00
Alexandre Julliard
7066ce0b1e kernel32: Set correct binary type for COM and PIF files. 2014-02-12 19:15:11 +01:00
Frédéric Delanoy
0f2bed51bd Assorted spelling fixes. 2014-02-10 15:47:29 +01:00
Erich E. Hoover
ee49a5a273 kernel32: Add support for security access parameters for named pipes. 2014-02-10 15:42:06 +01:00
Dmitry Timoshkov
fd9c9a6d03 kernel32: Fix page protection to access mapping performed by CreateFileMapping. 2014-02-10 10:46:52 +01:00
Piotr Caban
afadda8ff7 kernel32: Handle STD_*_HANDLE in GetFileType. 2014-02-07 16:29:17 +01:00
Dmitry Timoshkov
52bc06af7b kernel32/tests: Use PROCESS_ALL_ACCESS definition compatible with versions of Windows before Vista. 2014-02-07 16:28:55 +01:00
Dmitry Timoshkov
cdc306651c kernel32/tests: Use THREAD_ALL_ACCESS definition compatible with versions of Windows before Vista. 2014-02-07 16:28:51 +01:00
Dmitry Timoshkov
448d7770dc kernel32/tests: Use PROCESS_ALL_ACCESS definition compatible with versions of Windows before Vista. 2014-02-07 16:28:48 +01:00
Aric Stewart
5c8fe3a40f kernel32: Add system message for ERROR_NOT_CONNECTED. 2014-02-07 13:11:58 +01:00
Frédéric Delanoy
cb167e8e18 kernel32/tests: Remove unused variable. 2014-02-04 11:21:42 +01:00
Marcus Meissner
5d58b92b73 kernel32/tests: Initial threadpool test. 2014-02-04 11:14:52 +01:00
Francois Gouget
bff3d35e20 Assorted spelling fixes. 2014-01-30 15:00:34 +01:00
André Hentschel
8439cc9da4 kernel32: Use boolean return values in boolean functions. 2014-01-30 14:51:37 +01:00
Alexandre Julliard
cf0e96c6d0 configure: Rename substituted variables to a standard _CFLAGS and _LIBS format. 2014-01-30 14:51:33 +01:00
André Hentschel
bbd71d6b72 kernel32: Fix out of bounds access in DnsHostnameToComputerName[AW]. 2014-01-30 10:33:28 +01:00
Austin English
ea765ae005 kernel32: Quiet a noisy FIXME. 2014-01-29 14:58:35 +01:00
Frédéric Delanoy
3201f970b6 kernel32/tests: Use common wine_dbgstr_guid implementation from test.h. 2014-01-29 14:50:51 +01:00
Sebastian Lackner
2ff6bd271b kernel32/tests: Add tests for SleepConditionVariableSRW. 2014-01-27 14:13:50 +01:00
Sebastian Lackner
72cf5d6f12 kernel32: Forward SleepConditionVariableSRW to ntdll. 2014-01-27 14:13:49 +01:00
Sebastian Lackner
e7b3a43759 kernel32/tests: Add tests for TryAcquireSRWLockExclusive/Shared. 2014-01-27 14:13:47 +01:00
Sebastian Lackner
60c0637f62 kernel32: Forward TryAcquireSRWLockShared/Exclusive to ntdll. 2014-01-27 14:13:46 +01:00
Dmitry Timoshkov
294adeec4f kernel32/tests: Don't forget to delete a temporary file. 2014-01-27 14:13:40 +01:00
Dmitry Timoshkov
9703bee560 kernel32/tests: Don't forget to delete temporary manifest files. 2014-01-27 14:13:39 +01:00
Sebastian Lackner
31a283d4da ntdll: Implement SRWLock functions using keyed events. 2014-01-17 11:26:38 +01:00
Sebastian Lackner
0c77f89f61 kernel32/tests: Add a SRWLock test to simulate a typical use case. 2014-01-14 20:18:28 +01:00
Sebastian Lackner
d7ff42a091 kernel32/tests: Add basic tests for SRWLock commands. 2014-01-14 20:18:27 +01:00
Frédéric Delanoy
7215eb2497 kernel32/tests: Unconstify a character string. 2014-01-10 12:04:10 +01:00
Frédéric Delanoy
91f2435469 Assorted spelling fixes. 2014-01-09 17:39:59 +01:00
Sebastian Lackner
ddc7f300e2 kernel32: Forward condition variable functions to ntdll. 2014-01-08 14:34:14 +01:00
André Hentschel
1c61a53ef6 kernel32/tests: Don't test last error on success. 2014-01-08 11:10:27 +01:00
André Hentschel
29907a2862 kernel32/tests: Add missing last errors for win8. 2014-01-07 10:42:32 +01:00
André Hentschel
6db63a1867 kernel32/tests: Allow more last errors from win8. 2014-01-06 17:16:33 +01:00
Zhenbo Li
767c09f16f kernel32/tests: Add one more test for FindFirstFileA. 2014-01-02 17:46:00 +01:00
Alexandre Julliard
99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
Alexandre Julliard
5e7416e5c8 makefiles: Get rid of the MAKE_DLL_RULES variable. 2014-01-02 12:08:18 +01:00
Sebastian Lackner
3caa4e035d kernel32: Prevent endless loop if NtQuerySystemInformation fails. 2014-01-01 20:45:31 +01:00
Nikolay Sivov
1e1084232d ntdll: Fix manifest attribute parsing. 2014-01-01 19:32:56 +01:00
Nikolay Sivov
aa4ebeb57c ntdll: Fix return value when failed to locate resource. 2013-12-30 19:01:45 +01:00
Nikolay Sivov
031c027262 ntdll: Open source file only when needed during context creation. 2013-12-30 19:01:44 +01:00
André Hentschel
a803c496b2 kernel32/tests: Accept more win8 return values. 2013-12-26 13:44:34 +01:00
André Hentschel
5a6d38c2bd kernel32: Adapt input checking in OpenConsoleW to match win8 behaviour. 2013-12-26 13:42:55 +01:00
Frédéric Delanoy
5f6b0d0027 kernel32/tests: Constify some character strings. 2013-12-24 11:22:52 +01:00
Zhenbo Li
f39c64a85c kernel32/tests: Add some tests for DeleteFileA. 2013-12-23 18:39:58 +01:00
Huw Davies
67545ed54c kernel32: Give the non-wildcard case a chance of succeeding first time around. 2013-12-04 21:19:04 +01:00
Frédéric Delanoy
5ba7f79bad Assorted spelling fixes. 2013-12-03 19:41:53 +01:00
Frédéric Delanoy
6e472d8bc3 kernel32: Use BOOL type where appropriate. 2013-11-25 15:15:53 +01:00
Nikolay Sivov
a2bcfa28d4 kernel32: Add more LoadLibraryEx() flags defines and mark them as unsupported. 2013-11-25 15:15:52 +01:00
Nikolay Sivov
2ab0002674 kernel32/tests: Test for LoadLibraryEx() with full path without extension. 2013-11-22 16:08:44 +01:00
Nikolay Sivov
48c97ad0bc kernel32/tests: Some more tests for SearchPath(). 2013-11-22 16:08:35 +01:00
Alexandre Julliard
1e78c99388 kernel32: Validate the architecture of newly created processes on the server side. 2013-11-22 12:32:48 +01:00
Alexandre Julliard
f2c54dba01 kernel32: Determine the module architecture for all binary types. 2013-11-22 12:25:30 +01:00
Alexandre Julliard
e8eb781327 server: Check PE file architecture at mapping creation time. 2013-11-21 19:39:02 +01:00
Alexandre Julliard
55eb7e56e8 kernel32/tests: Add some tests for invalid image section mappings. 2013-11-21 19:39:02 +01:00
Alexandre Julliard
70d490aa3d kernel32/tests: Add a helper function for creating a test dll. 2013-11-21 19:39:02 +01:00
Alexandre Julliard
3dc1f20f03 kernel32/tests: Make the page size a global variable. 2013-11-21 19:39:02 +01:00
Frédéric Delanoy
a10dfea044 kernel32/tests: Use BOOL type where appropriate. 2013-11-19 18:47:36 +01:00
Piotr Caban
18f7f637b0 kernel32/tests: Fix IdnToNameprepUnicode tests. 2013-11-18 11:17:51 +01:00
André Hentschel
4ecc9788bd ntdll: Adjust NtAreMappedFilesTheSame to win8 behaviour. 2013-11-13 11:21:50 +01:00
Dmitry Timoshkov
a890d0f030 server: Make it possible for WaitCommEvent to detect recursive requests. 2013-11-13 11:21:28 +01:00
André Hentschel
b6b9050d58 ntdll: Implement LdrResolveDelayLoadedAPI. 2013-11-12 12:58:03 +01:00
André Hentschel
c6f70ca853 kernel32/tests: Improved tests for the ResolveDelayLoadedAPI callback. 2013-11-12 12:57:54 +01:00
Alexandre Julliard
456c8f435a makefiles: Remove the no longer needed EXTRASUBDIRS variables. 2013-11-09 22:10:52 +01:00
Daniel Lehman
37dad12971 kernel32: Use ANSI code page if current thread locale has no code page. 2013-11-08 16:29:43 +01:00
Frédéric Delanoy
da6c728195 Assorted spelling fixes. 2013-11-07 19:01:20 +01:00
Francois Gouget
375d8a39e2 kernel32: Avoid an unneeded abbreviation in an error message. 2013-11-05 20:38:20 +01:00
André Hentschel
cb1806db26 kernel32/tests: Test ResolveDelayLoadedAPI with generated dll. 2013-11-04 19:15:43 +01:00
Francois Gouget
c31280d6e1 kernel32/tests: Check that WaitCommEvent() returns immediately in overlapped mode. 2013-11-01 10:57:14 +01:00
Francois Gouget
7425d2cac2 kernel32/tests: Remove a couple of incorrect CreateFile() console tests. 2013-11-01 10:57:14 +01:00
Francois Gouget
62ddaf8f6a kernel32/tests: On Windows 8 IdnToNameprepUnicode() returns a different error for invalid parameters. 2013-11-01 10:55:20 +01:00
Francois Gouget
c0dbfebe04 kernel32/tests: On Windows 8 DATE_LONGDATE does not output a leading 0 for the day. 2013-11-01 10:54:55 +01:00
Francois Gouget
18a9aba058 kernel32/tests: Windows 8 returns different error codes. 2013-11-01 10:54:12 +01:00
Francois Gouget
f399e90306 kernel32/tests: Fix some module tests on Windows 8.
Windows 8 and 8.1 return some different error codes and
GetDllDirectory() handles buffer termination a bit differently.
2013-11-01 10:53:41 +01:00
Dmitry Timoshkov
eba2f43221 kernel32: Add special case for "." and ".." to GetLongPathName. 2013-10-30 09:43:40 +01:00
Dmitry Timoshkov
d57444a622 kernel32: Add special case for "." and ".." to GetShortPathName. 2013-10-30 09:43:30 +01:00
Dmitry Timoshkov
4befefa94d kernel32/tests: Add tests for GetLongPathName/GetShortPathName and relative paths. 2013-10-29 10:21:30 +01:00
Dmitry Timoshkov
d97a36c51f kernel32/tests: Update trace message to report actually used timeout value. 2013-10-28 10:43:00 +01:00
Dmitry Timoshkov
3b429e88ff server: Add support for pending write flag to the serial device. 2013-10-25 13:36:01 +02:00
Dmitry Timoshkov
53e727ef95 kernel32/tests: WaitCommEvent may sometimes return immediately on a busy system when write operation to a COM-port has already completed. 2013-10-25 13:36:01 +02:00
Dmitry Timoshkov
0db996e14c kernel32/tests: Increase the timeout for completion of write to a COM-port.
It's not enough for some hardware configurations.
2013-10-25 13:36:01 +02:00
Dmitry Timoshkov
b46bd115bb kernel32/tests: Accept the case when WriteFile is able to complete the request immediately for an overlapped COM-port write.
The behaviour depends on the driver and hardware used.
2013-10-25 13:36:01 +02:00
Daniel Lehman
0669a8aca2 kernel32: Don't use depth in RtlInterlockedFlushSList.
Depth wraps around at 65536 but list supports more elements.
2013-10-24 10:56:13 +02:00
Frédéric Delanoy
f56e9ebe38 kernel32/tests: Use BOOL type where appropriate. 2013-10-24 10:49:53 +02:00
Frédéric Delanoy
7ab78b4e03 kernel32: Use BOOL type where appropriate. 2013-10-24 10:49:11 +02:00
Dmitry Timoshkov
231a31223c kernel32/tests: Enable kernel32 tests compilation with __WINESRC__ defined. 2013-10-22 16:37:40 +02:00
Dmitry Timoshkov
3fa1b837cf kernel32/tests: Fix volume tests compilation with __WINESRC__ defined. 2013-10-22 16:37:40 +02:00
Dmitry Timoshkov
7dab5fe998 kernel32/tests: Fix version tests compilation with __WINESRC__ defined. 2013-10-22 16:37:40 +02:00
Dmitry Timoshkov
965d903f33 kernel32/tests: Fix toolhelp tests compilation with __WINESRC__ defined. 2013-10-22 16:37:40 +02:00
Dmitry Timoshkov
7e39bfc04b kernel32/tests: Fix timer tests compilation with __WINESRC__ defined. 2013-10-22 16:37:40 +02:00
Dmitry Timoshkov
abbe8b3d02 kernel32/tests: Fix thread tests compilation with __WINESRC__ defined. 2013-10-22 16:37:40 +02:00