Commit Graph

506 Commits

Author SHA1 Message Date
Rob Shearman 7ed33ae721 kernel32: Fix handle leak in start_console_renderer_helper. 2008-02-18 12:20:38 +01:00
Rob Shearman a82f4dd9b7 Don't use GetExceptionCode and GetExceptionInformation in exception filter functions.
When using native compiler exceptions, it isn't valid to use 
GetExceptionCode and GetExceptionInformation anywhere other than in the 
filter or handler blocks since it would be very hard for the compiler to 
work out where to retrieve the exception information from on the stack.

Therefore, remove the WINE_EXCEPTION_FILTER and WINE_FINALLY_FUNC macros 
which enabled GetExceptionCode, GetExceptionInformation and 
AbnormalTermination to be used inside of the functions they declared and 
fix up all callers to access the information directly.
2008-02-16 14:57:44 +01:00
Alexandre Julliard 58913b439b kernel32: On Mac OS, recompose the Unicode strings we get from the OS. 2008-02-15 12:07:56 +01:00
Francois Gouget 148061814c kernel32/tests: Fix the time tests when 'Automatically adjust clock for daylight saving changes' has been unset. 2008-02-15 09:56:12 +01:00
Paul Vriens fc82d8c221 kernel32/tests: ReplaceFile[AW] doesn't exist on win9x. 2008-02-13 16:41:54 +01:00
Erich Hoover 664c68a2c9 kernel32: Add tests for ReplaceFileA and ReplaceFileW. 2008-02-12 23:03:37 +01:00
Rob Shearman c72de7bce2 kernel32: Implement ReplaceFileW.
Based on a patch by Erich Hoover.
2008-02-12 23:03:09 +01:00
Erich Hoover 06a3c3a281 kernel32: Implement ReplaceFileA. 2008-02-12 23:02:55 +01:00
Alexandre Julliard b1789fc73f kernel32: Don't save the signal mask in sigsetjmp.
This shouldn't be needed anymore now that exceptions are not handled
on the signal stack, and signal mask handling is broken on Mac OS.
2008-02-12 22:39:54 +01:00
Dmitry Timoshkov 667dad2331 kernel32: Separate modifier from charset before detecting the charset codepage. 2008-02-08 13:13:20 +01:00
Alexandre Julliard 05c7174909 tests: Add a helper routine to wait for a child process and propagate its result correctly. 2008-02-07 12:56:00 +01:00
Jens Nestler 6d59ddf67b kernel32: Don't fail unconditionally in MoveFile for directories with flag MOVEFILE_REPLACE_EXISTING. 2008-02-06 13:49:29 +01:00
James Hawkins ea41e863ad kernel32: Factor out the VerifyVersionInfo tests into their own function. 2008-02-05 12:19:36 +01:00
Alistair Leslie-Hughes 9d36b416a7 kernel32: Add RegisterApplicationRestart stub. 2008-02-05 12:06:09 +01:00
Dmitry Timoshkov 21204f579e kernel32: LOADPARAMS16->showCmd can be NULL, do not crash in that case. 2008-02-04 11:49:37 +01:00
Paul Vriens 71f81bf1f5 kernel32/tests: Win9x returns a different last error. 2008-01-24 14:04:07 +01:00
Alexandre Julliard e84daed485 Avoid sizeof in traces. 2008-01-24 14:03:10 +01:00
Francois Gouget d0794c4aeb Assorted spelling fixes. 2008-01-23 21:16:22 +01:00
Francois Gouget e7e998004a kernel32/tests: Test the expansion of indirect environment variable references. 2008-01-23 20:39:35 +01:00
Gerald Pfeifer 39f672798b kernel32: Use setproctitle where applicable to set the process name.
Based on a patch by Kris Moore.
2008-01-21 11:52:33 +01:00
Rob Shearman 71e0e1ca63 kernel32: Initialise the top 16-bit stack frame to zero. 2008-01-18 11:56:13 +01:00
Alexandre Julliard 9261c63ab3 kernel32: Fix the system affinity returned by GetProcessAffinityMask. 2008-01-16 21:01:33 +01:00
Alexandre Julliard 1d6d080d4b wineboot: Add a --init option used when launched automatically at startup.
Don't execute Run entries in that case.
2008-01-16 19:51:14 +01:00
Francois Gouget 44b52b128c Assorted spelling fixes. 2008-01-16 12:48:29 +01:00
Francois Gouget 12689d9b0f kernel32/tests: Small spelling fix in a parameter name. 2008-01-16 12:46:38 +01:00
Francois Gouget f6fab295f3 Fix spelling error in the generated conformance test files. 2008-01-16 12:46:18 +01:00
Alexandre Julliard 93cdead182 kernel32/tests: Avoid size_t in traces. 2008-01-15 17:08:09 +01:00
Paul Vriens 4111ea931c kernel32/tests: FindFirstVolumeA is not available on win98. 2008-01-15 12:35:42 +01:00
Marcus Meissner 3bf54c2950 server: Enumerate process in reverse. 2008-01-14 16:24:55 +01:00
Alexandre Julliard 9c00a78da5 kernel32: Don't inherit stdin/stdout handles in wineboot. 2008-01-14 15:49:56 +01:00
Alexandre Julliard 5a3132343d kernel32: Close the stdio handles when creating a detached process. 2008-01-14 15:49:12 +01:00
Gerald Pfeifer 221a8048b9 kernel32: Fix type of a loop variable in SNOOP16_Entry(). 2008-01-14 15:31:37 +01:00
Francois Gouget 0069651056 kernel32/tests: Despite the MSDN claims, GetComputerName() does not return the required buffer size... except on Vista. So update the tests accordingly. 2008-01-11 12:25:39 +01:00
Francois Gouget e3e2a5c0ac kernel32/tests: Add more ExpandEnvironmentStringsA() tests.
Document the observed ExpandEnvironmentStrings() behavior.
2008-01-11 12:25:33 +01:00
Paul Vriens e1f88e5f69 kernel32/tests: Skip not implemented functions. 2008-01-10 12:15:44 +01:00
Paul Vriens c9434956d5 kernel32/tests: Skip not implemented functions. 2008-01-10 12:15:39 +01:00
Paul Vriens 7b7838289f kernel32/tests: Skip not implemented functions. 2008-01-10 12:15:30 +01:00
Andrew Talbot 272fb14e70 kernel32: Remove unneeded casts. 2008-01-09 12:26:04 +01:00
Alexandre Julliard c486d8774f kernel32: Fail more gracefully in GetVolumeInformation for fake drive devices. 2008-01-07 23:17:42 +01:00
Michael Stefaniuc 46f8b23eb7 kernel32: Add missing HeapFree(). Found by Smatch. 2008-01-07 22:57:08 +01:00
Alexandre Julliard f53bb857ac kernel32/tests: Avoid using size_t in traces. 2008-01-07 17:18:35 +01:00
Rob Shearman 628a515b83 kernel32: Implement RegisterWaitForSingleObjectEx. 2008-01-07 12:04:07 +01:00
Hans Leidekker 16d5be1f2f kernel32: Add Surinam Dutch and Belgian Dutch translations of language group names. 2008-01-07 12:02:26 +01:00
Hans Leidekker b7917bcfda kernel32: Fix two test failures on Win98 due to missing GetTempPathW. 2008-01-07 12:02:19 +01:00
Alexandre Julliard d17b29303c kernel32/tests: Added tests for FindFirstVolume/FindNextVolume. 2008-01-04 14:31:55 +01:00
Alexandre Julliard 7f508df25b kernel32: Implemented FindFirstVolume/FindNextVolume using the mount point manager. 2008-01-04 14:31:40 +01:00
Kirill K. Smirnov 24f78d7366 kernel32: Convert newborn wineserver handle to kernel32 console handle. 2008-01-04 13:46:13 +01:00
Alexandre Julliard d55b2de574 kernel32: Launch wineboot on first startup of a wine process. 2008-01-04 12:51:04 +01:00
Rob Shearman 910cf61723 kernel32: Add tests for RegisterWaitForSingleObject and UnregisterWait. 2008-01-02 14:30:14 +01:00
Rob Shearman 1822a722d9 kernel32: Implement RegisterWaitForSingleObject and UnregisterWait. 2008-01-02 14:30:11 +01:00
Gerald Pfeifer f41d0cb530 kernel32/tests: Remove extraneous check. 2007-12-31 19:21:25 +01:00
Stefan Leichter 20c0ba2341 kernel32: Silence a fixme in GetNativeSystemInfo. 2007-12-23 14:17:12 +01:00
Alexandre Julliard 201fc77fd6 winedos: Add the possibility of refusing to emulate some interrupts. 2007-12-23 13:55:12 +01:00
Alexandre Julliard 28aed6d9c8 kernel32: Initialize MaximumLength of the user params directory too. 2007-12-23 13:54:31 +01:00
Alexandre Julliard 16aadb2785 kernel32: Yet another workaround for broken apps in GlobalMemoryStatus. 2007-12-21 14:27:40 +01:00
Kirill K. Smirnov b7f617c916 kernel32: Invalidate local copy of console input event handle while reallocating console. 2007-12-21 14:27:10 +01:00
Andrey Turkin 343f2c1b30 ntdll: Implement BindIoCompletionCallback. 2007-12-21 13:52:34 +01:00
Alexandre Julliard a4269c8eed kernel32: Store the initial directory as a full path in the process parameters. 2007-12-21 12:42:28 +01:00
Rob Shearman e55854ddc5 kernel32: Add a test for calling VirtualAlloc on a view of a SEC_RESERVE file mapping. 2007-12-21 12:41:24 +01:00
Andrew Talbot 4a35f62deb kernel32: Revert the removal of a cast from a macro. 2007-12-21 12:40:50 +01:00
Andrew Talbot ca6003b8f0 kernel32: Remove unneeded casts. 2007-12-21 12:40:32 +01:00
Alexandre Julliard e2a366ce33 kernel32: Forward interrupts in 32-bit code to winedos too. 2007-12-20 12:18:19 +01:00
Andrew Talbot 7bce56881f kernel32: Remove unneeded casts. 2007-12-20 10:47:00 +01:00
Andrew Talbot 650b273361 kernel32: Remove unneeded casts. 2007-12-19 12:18:48 +01:00
Kirill K. Smirnov c9700896fe kernel32: ReadConsoleW should wait for at least one character before returning. 2007-12-18 19:48:36 +01:00
Rico Schüller d8570f7aae kernel32: Fix typo. 2007-12-18 19:48:13 +01:00
Stefan Dösinger 70868dfa61 kernel32: Add a test for BindIoCompletionCallback. 2007-12-18 14:07:48 +01:00
Michael Stefaniuc 8c6fdf19a9 kernel32: Do not reuse the name of a function argument for a local variable. 2007-12-14 12:26:07 +01:00
Andrew Talbot a9b05bea3f kernel32: Remove unneeded casts. 2007-12-14 12:25:06 +01:00
Alexandre Julliard a5fb981ace Makedll.rules: Add a generic EXTRADLLFLAGS variable instead of defining a specific variable for every possible parameter. 2007-12-11 14:59:54 +01:00
Hans Leidekker c6dd1f1599 kernel32: GetConsoleInputExeNameW returns TRUE even when it fails. 2007-12-10 12:27:04 +01:00
Francois Gouget 8ee430d146 kernel32/tests: Get the test to run on Windows 95. 2007-12-10 12:06:01 +01:00
Francois Gouget c43f61461f kernel32/tests: dll_capable() makes no sense since it's only used on APIs we link with. So remove it. 2007-12-10 12:05:55 +01:00
Detlef Riekenberg efb13b28df Assorted spelling fixes. 2007-12-08 19:55:39 +01:00
Alexandre Julliard c5d63b5535 kernel32: Read label and serial from the filesystem when the device is accessible but unknown. 2007-12-08 19:53:24 +01:00
Alexandre Julliard 6a3dd1ecf9 kernel32: Revert change that slipped in commit db24d3af9a by mistake. 2007-12-08 19:49:52 +01:00
Francois Gouget 5f7a9cea38 Assorted spelling fixes. 2007-12-07 16:35:32 +01:00
Michael Stefaniuc d457af740d kernel32: Pass HEAP_ZERO_MEMORY to HeapAlloc() instead of clearing the memory with a separate memset() call. 2007-12-06 12:07:17 +01:00
Paul Vriens 5e30e5a0f2 kernel32/tests: Test for functions should be or-ed. 2007-12-06 12:05:37 +01:00
Paul Vriens 0ada917873 kernel32: Make tests run on Win98 again. 2007-12-05 13:48:57 +01:00
Alexandre Julliard 0f6e826fe0 kernel32: Remove the no-exec fault workaround, it shouldn't be needed anymore. 2007-12-05 12:35:47 +01:00
Hans Leidekker 8f3afb4120 kernel32: Implement and test {G, S}etConsoleInputExeName{A, W}. 2007-12-03 16:03:23 +01:00
Paul Vriens b3a85a3fc4 kernel32: Add some simple tests for GetVersionExA. 2007-12-03 11:52:01 +01:00
Stefan Leichter db24d3af9a kernel32: Added stub for FindVolumeClose. 2007-11-30 12:43:59 +01:00
Gerald Pfeifer 3ce295a1ef kernel32: Handle default case in Local32_FromHandle(). 2007-11-29 15:33:15 +01:00
Jacek Caban 8c2b994c46 kernel32: Terminate child process in virtual tests. 2007-11-26 12:35:55 +01:00
Rob Shearman 361a98c561 kernel32: Change the shared manifest test to depend on a build number that isn't currently published on at least XP, showing that assemblies with higher build numbers can be used. 2007-11-26 12:27:06 +01:00
Alexandre Julliard 58b85bba3e kernel32/tests: Don't crash the test if GetThreadContext fails. 2007-11-20 17:53:43 +01:00
Michael Stefaniuc e973a193b7 kernel32: Remove duplicate includes. 2007-11-19 13:54:14 +01:00
Hans Leidekker 23e995e3a7 kernel32: Add stub implementations for FindFirstVolume{A, W}. 2007-11-19 13:53:17 +01:00
Dmitry Timoshkov d1a3025826 kernel32: Mask out FILE_ATTRIBUTE_NOT_CONTENT_INDEXED to prevent a test failure under Windows. 2007-11-16 12:33:24 +01:00
Dmitry Timoshkov 07efb2740b kernel32: Set last error to ERROR_ALREADY_EXISTS if CreateFile succeeds and file existed before for CREATE_ALWAYS and OPEN_ALWAYS. 2007-11-16 12:33:18 +01:00
Francois Gouget b734dee31e kernel32/tests: Fix a signed/unsigned warning. 2007-11-13 23:28:06 +01:00
EA Durbin 661755b69f kernel32: Add stub for GetConsoleKeyboardLayoutNameW. 2007-11-13 15:10:12 +01:00
EA Durbin 592fc26b09 kernel32: Add stub implementation of GetConsoleKeyboardLayoutNameA. 2007-11-13 15:09:08 +01:00
EA Durbin 6e6a2a5856 kernel32: Add stub implementation of GetConsoleInputExeNameW. 2007-11-13 15:08:28 +01:00
EA Durbin 4a0833c2d0 kernel32: Add stub implementation of GetConsoleInputExeNameA. 2007-11-13 15:07:54 +01:00
Rob Shearman 8296548bb5 kernel32: Implement GetThreadId. 2007-11-13 13:29:27 +01:00
Hans Leidekker addf895c87 kernel32: Loosen requirements on what QueryDosDevice returns. 2007-11-12 12:56:28 +01:00
Francois Gouget 81a5701ca9 Assorted spelling fixes. 2007-11-09 13:07:12 +01:00