Commit Graph

1281 Commits

Author SHA1 Message Date
Andrew Nguyen f199a83d47 kernel32: Separate format string parsing in FormatMessageA into a new function. 2010-04-19 15:44:34 +02:00
Andrew Nguyen df83469258 kernel32: Separate format string parsing in FormatMessageW into a new function. 2010-04-19 15:44:27 +02:00
Andrew Nguyen fcdd0d3040 kernel32: Consistify allocation behavior with FormatMessageA/W. 2010-04-19 15:44:05 +02:00
Andrew Nguyen 8e20322578 kernel32/tests: Add tests for buffer allocation in FormatMessage. 2010-04-19 15:43:31 +02:00
Andrew Nguyen ce61b254d0 kernel32: Only check the buffer pointer in FormatMessageA if buffer allocation is requested. 2010-04-19 15:43:25 +02:00
Andrew Nguyen 8b28efaed7 kernel32: Reject an insufficiently sized buffer in FormatMessageA/W. 2010-04-19 15:43:07 +02:00
Andrew Nguyen c0e7931954 kernel32: Remove superfluous heap reallocation calls in FormatMessageA/W.
The buffer in question is temporary and will be freed on function 
return, so resizing and leaving the enlarged space unused is pointless.
2010-04-19 15:42:42 +02:00
Andrew Nguyen f35ca2a77c kernel32/tests: Remove a superfluous comment in the FormatMessage tests. 2010-04-19 15:42:39 +02:00
Eric Pouech 409033cb6a kernel32: Added proper support for GetSystemInfo on x86_64. 2010-04-16 16:54:30 +02:00
Alexandre Julliard d0578c080a kernel32: Map the new detailed direction information back to the Windows constants. 2010-04-14 18:00:45 +02:00
Alexandre Julliard 5189eef6bb ntdll: Fix affinity mask check for 64-bit. 2010-04-08 23:57:08 +02:00
Alexandre Julliard a8e86e35dd winapi: Generate the 64-bit variant of structure size/alignment tests. 2010-04-07 18:03:00 +02:00
Andrew Nguyen 39208d4d60 kernel32: Don't set last error on success in OpenConsoleW. 2010-04-01 18:12:40 +02:00
Andrew Nguyen b7bf2abdff kernel32: Improve parameter validation in OpenConsoleW. 2010-04-01 18:12:40 +02:00
Marcus Meissner 35dfd34a9f kernel32: Initialize env (Coverity). 2010-03-31 11:44:30 +02:00
Alexandre Julliard 02aef1c3b8 kernel32: Increase the wineboot timeout. 2010-03-30 16:55:11 +02:00
Alexandre Julliard be0db98a23 kernel32: Fix processing of spaces in command line for builtin exes. 2010-03-29 19:37:35 +02:00
Alexandre Julliard 808c29b908 kernel32: Add support for starting binaries in 32/64-bit mode from the other mode. 2010-03-29 17:57:15 +02:00
Michael Stefaniuc 8f7372488b kernel32/tests: Remove superfluous casts of integer constants. 2010-03-29 11:48:58 +02:00
André Hentschel a9a7d963c2 kernel32: Make process traces aware of 64-bit. 2010-03-25 16:08:27 +01:00
André Hentschel e9be1b4094 kernel32: Fix return value of FlsFree. 2010-03-22 15:53:42 +01:00
Francois Gouget 3428b94a8d Assorted spelling and case fixes. 2010-03-22 10:49:13 +01:00
Francois Gouget 891b1ce3de kernel32/tests: Remove a space after a '\n' in a skip(). 2010-03-22 10:48:17 +01:00
Alexandre Julliard c7bed19c0b kernel32: Don't try to open builtin exe files during CreateProcess, only check the path syntax. 2010-03-18 13:46:22 +01:00
Paul Vriens b120836bd2 kernel32/tests: Run tests again on Win95. 2010-03-16 17:03:23 +01:00
Alexandre Julliard bef5645eb1 makefiles: Remove the no longer needed explicit separators for dependencies. 2010-03-16 13:28:19 +01:00
Henri Verbeet ef058b3030 kernel32: Implement CheckRemoteDebuggerPresent(). 2010-03-15 15:56:56 +01:00
Henri Verbeet 6c0ecd0955 server: Debugging our own process is disallowed. 2010-03-15 15:55:08 +01:00
Alexandre Julliard 2bb93d39be kernel32: Abstract the key creation routine and move the key existence check to the top-level function. 2010-03-13 19:24:46 +01:00
Henri Verbeet 1970fb35d4 server: Allow the debugger to be debugged. 2010-03-05 13:21:22 +01:00
Alexandre Julliard 83c272a258 ntdll: Return STATUS_IMAGE_NOT_AT_BASE when an image mapping has to be relocated. 2010-03-03 20:05:40 +01:00
Reece Dunn 1b46c0660d kernel32/tests: Add a test case for calling TlsFree on a freed index. 2010-03-03 11:49:35 +01:00
Alexandre Julliard ea3f48ff11 kernel32: Create the Nls\CodePage key one element at a time. 2010-03-01 14:06:08 +01:00
Alexandre Julliard f5248ef7c8 kernel32: Create the Control Panel\International key one element at a time. 2010-03-01 14:04:33 +01:00
Alexandre Julliard 6d4cf67a56 kernel32: Create the hardware registry keys one at a time, and bail out if the main key already exists. 2010-03-01 14:03:35 +01:00
Alexandre Julliard 61812d17f8 kernel32: Moved creation of the DynData registry keys to wineboot. 2010-03-01 14:03:35 +01:00
Alexandre Julliard 00ac7074df kernel32: Move shared heap creation to krnl386 and load it by default on Win9x versions. 2010-03-01 11:34:34 +01:00
Nikolay Sivov 464ece6474 kernel32/lcformat: Get rid of back jumps on errors. 2010-03-01 11:34:09 +01:00
Alexandre Julliard fbbac38e4e kernel32/tests: Fix broken usage of the ok() macro return value.
Spotted by Yann Droneaud.
2010-02-24 16:47:48 +01:00
Andrey Turkin 2db497e89e kernel32: Use TEB-based buffer in CreateMutexExA. 2010-02-24 12:16:33 +01:00
Alexandre Julliard 25718e1af3 kernel32/tests: Add a couple of last error codes for Win7. 2010-02-23 11:24:08 +01:00
Hans Leidekker b7696db161 kernel32/tests: Fix a thread handle leak. 2010-02-22 13:15:43 +01:00
Erich Hoover 2902d8090a kernel32/tests: Add test for 'all processors' flag on Vista and newer. 2010-02-22 11:57:12 +01:00
Ken Thomases 8c2b290d11 kernel32: Mac: If language is less specific variant of locale, keep locale.
For a Mac user in Australia, for example, the out-of-the-box configuration is
that the preferred language is generic English ("en").  Their formats locale
should be Australia ("en_AU").  Detect that case and don't override
LC_MESSAGES.
2010-02-22 11:41:38 +01:00
Alexandre Julliard 6164ce2d82 makefiles: Use the standard C_SRCS variable as the list of test files.
This enables it to be auto-updated by make_makefiles.
2010-02-22 10:47:11 +01:00
Alexandre Julliard fb950a6da5 kernel32/tests: Fix a test failure on xp64. 2010-02-17 12:04:42 +01:00
Alexandre Julliard 2530304f1c ntdll: Fix the return status of NtQueryValueKey for a too small buffer. 2010-02-16 14:28:41 +01:00
Michael Stefaniuc 3f37e33497 kernel32: Avoid using HIWORD on types that are 64bit on Win64. 2010-02-10 14:33:52 +01:00
Michael Stefaniuc 0f5d042ff2 kernel32: Don't use HIWORD to check for swapped args in GetCurrentDirectoryA. 2010-02-10 14:33:35 +01:00
Alexandre Julliard a53ca1abdc kernel32: Do not load 16-bit krnl386.exe by default. 2010-02-08 17:49:48 +01:00
Alexandre Julliard abf29377ba kernel32: Export InterlockedCompareExchange64. 2010-02-05 13:14:20 +01:00
Peter Rosin 678cb27b3a kernel32: Document SetThreadErrorMode and GetThreadErrorMode. 2010-02-05 10:07:40 +01:00
Peter Rosin 805f7d79db kernel32: Add SetThreadErrorMode and GetThreadErrorMode. 2010-02-04 13:39:27 +01:00
Peter Rosin e8a32ec2b8 kernel32: Add tests for SetThreadErrorMode and GetThreadErrorMode. 2010-02-04 13:39:27 +01:00
Alexandre Julliard 5c9753e2b6 kernel32/tests: Remove leftover Sleep() call. 2010-02-01 16:19:21 +01:00
Alexandre Julliard 5f9f260e42 kernel32: Avoid truncating the output buffer length in GetCurrentDirectoryA. 2010-02-01 13:22:41 +01:00
Alexandre Julliard a86adcca61 kernel32/tests: Fix heap flag tests for the page alloc case. 2010-02-01 12:35:43 +01:00
Maarten Lankhorst 3d7aabd887 kernel32: Work around safety check on siglongjmp. 2010-01-29 14:59:03 +01:00
Alexandre Julliard 221c115e98 kernel32/tests: Fix some of the heap tests for 64-bit. 2010-01-29 13:29:21 +01:00
Alexandre Julliard 0692bfda5f ntdll: Don't require heap sizes to be 64K aligned. 2010-01-28 19:47:01 +01:00
Alexandre Julliard 6beb82e2d6 kernel32: Append the user PATH value to the system one. 2010-01-28 14:53:24 +01:00
Alexandre Julliard 17dea24f48 kernel32: Make sure the volatile environment is always loaded. 2010-01-28 13:35:03 +01:00
Alexandre Julliard 0daf0528da kernel32: Load USERNAME and USERPROFILE from the volatile environment. 2010-01-28 13:34:05 +01:00
Alexandre Julliard 2c0e31cfdc kernel32: Treat PWD as a special environment variable. 2010-01-28 13:29:53 +01:00
Alexandre Julliard 31aa3900e4 ntdll: Add 8 more bytes to the block tail when tail checking is enabled. 2010-01-27 18:46:07 +01:00
Alexandre Julliard 356b06faea kernel32/tests: Add tests for tail checking on large heap blocks. 2010-01-26 16:08:49 +01:00
Alexandre Julliard b1c9ce44dd kernel32/tests: Add tests for heap tail and free block checking. 2010-01-26 15:58:50 +01:00
Michael Stefaniuc 02bddd1caf kernel32: Use IS_INTRESOURCE instead of HIWORD to check a resource. 2010-01-26 12:13:48 +01:00
André Hentschel c008984a01 kernel32: Implement IsThreadAFiber function. 2010-01-25 12:56:26 +01:00
André Hentschel a9353a1caf kernel32/tests: Test Fiber callback count. 2010-01-25 12:55:41 +01:00
André Hentschel 30deb6b896 kernel32/tests: Test Fiber Local Storage functions. 2010-01-25 12:55:34 +01:00
André Hentschel e0475a3e11 kernel32/tests: Test IsThreadAFiber function. 2010-01-25 12:55:22 +01:00
André Hentschel f57dbecda8 kernel32/tests: Test fiber Ex functions. 2010-01-25 12:55:12 +01:00
André Hentschel ffae80a39c kernel32/tests: Run fiber tests on more platforms. 2010-01-25 12:55:00 +01:00
André Hentschel 2d956be11d kernel32/tests: Fix header comments. 2010-01-25 12:46:00 +01:00
Alexandre Julliard dabda7e3ee kernel32/tests: Add tests for the global flag and its influence on the heap flags. 2010-01-22 12:33:24 +01:00
André Hentschel 643625b9e0 kernel32/tests: Initial fiber tests. 2010-01-20 15:35:38 +01:00
Alexandre Julliard 3b67ad9bd4 ntdll: Fix the NtCreateEvent prototype.
It takes an event type, not a manual reset flag.
2010-01-18 20:34:54 +01:00
Paul Vriens 6fd641aa05 kernel32/tests: Skip a test on Win9x/WinMe. 2010-01-18 14:39:11 +01:00
Andrew Nguyen 11dce800c1 kernel32/tests: Add tests for IsBadCodePtr. 2010-01-18 14:38:53 +01:00
Andrew Nguyen 5b9730c494 kernel32/tests: Add more tests for IsBadWritePtr. 2010-01-18 14:38:48 +01:00
Andrew Nguyen 4108fd0f35 kernel32/tests: Add tests for IsBadReadPtr. 2010-01-18 14:38:41 +01:00
Jason Edmeades 99a0376a4f kernel32: Return error on second attempt to free a module. 2010-01-18 14:26:16 +01:00
André Hentschel b45d4aa161 kernel32/tests: Simplify string generation. 2010-01-11 11:29:38 -06:00
Paul Vriens a95e070824 kernel32: Add a stubbed GetConsoleProcessList(). 2010-01-05 12:29:18 +01:00
Marcus Meissner a55399f5b6 kernel32: Check if buffer is NULL before derefencing it (Coverity). 2010-01-04 11:49:45 +01:00
Michael Stefaniuc 4f60b6bf91 kernel32: Add missing stdarg.h includes. 2009-12-31 12:12:17 +01:00
Alexandre Julliard a18bbec0f0 kernel: Add an import lib for krnl386, and stop importing 16-bit functions from kernel32. 2009-12-30 18:01:34 +01:00
Alexandre Julliard 475b7d226c kernel32: Make krnl386.exe into a stand-alone 16-bit module. 2009-12-30 17:36:14 +01:00
Alexandre Julliard 8268ed9783 kernel32: Do not include 16-bit headers in 32-bit files. 2009-12-30 16:21:56 +01:00
Alexandre Julliard e49c54d288 kernel32: Get rid of the support for 16-bit resources in 32-bit resource functions. 2009-12-29 11:44:41 +01:00
Alexandre Julliard 3a04f5abfc kernel32: Don't include kernel_private.h in 16-bit files. 2009-12-29 11:44:25 +01:00
Alexandre Julliard fc5c459d63 kernel32: Move the kernel thread data definitions to kernel16_private.h. 2009-12-29 11:44:13 +01:00
Alexandre Julliard 84e51e73b4 kernel32: Link directly to the thunk functions instead of looking up their entry point. 2009-12-29 11:44:02 +01:00
Alexandre Julliard 9ff8da5499 kernel32: Don't store the current codepage in the thread data. 2009-12-29 11:43:46 +01:00
Alexandre Julliard 40a264b0e7 winevdm: Move the loading of the system drivers into their specific 16-bit module. 2009-12-28 23:50:40 +01:00
Alexandre Julliard a3e80956d1 kernel32: Handle the case where the 16-bit module is already loaded also for separated dlls. 2009-12-28 23:50:36 +01:00
Alexandre Julliard eb4477120a kernel32: Make GMEM_DDESHARE blocks owned by the calling module. 2009-12-28 12:27:17 +01:00
Andrew Nguyen 9294882b94 kernel32: Ignore empty environment values from registry. 2009-12-24 17:00:08 +01:00
Andrew Nguyen 542feda6b8 ntdll: Use the HKCU\Volatile Environment key when generating the initial process environment. 2009-12-24 16:59:00 +01:00