Commit Graph

1381 Commits

Author SHA1 Message Date
Uwe Bonnes 290a419f0a Don't try to access floppy if it's not mounted. 2005-06-09 09:42:49 +00:00
Alexandre Julliard bd000a0203 Removed some unnecessary inclusions of thread.h 2005-06-06 20:13:08 +00:00
Alexandre Julliard 0f079d7858 Moved the kernel per-thread data out of the TEB into a private
structure stored in TEB.SystemReserved1.
2005-06-06 20:00:14 +00:00
Alexandre Julliard 6ae4ee496e Fetch the stack selector to use from the previous stackframe instead
of the TEB.
2005-06-06 19:57:05 +00:00
Alexandre Julliard 6d07a9c39c Moved the server part of the ExitThread functionality to ntdll. 2005-06-05 18:38:48 +00:00
Alexandre Julliard 143db5ce8e Don't bother looking for a resource directory in free memory areas. 2005-06-05 18:28:04 +00:00
Alexandre Julliard 9b57a950d7 Avoid accessing the htask16 TEB field from ntdll. 2005-06-05 18:24:35 +00:00
Mike Hearn 0aab090838 Suppress the noisy SetNamedPipeHandleState fixme. 2005-06-05 18:03:38 +00:00
Uwe Bonnes 80a84a8c74 Added more pipe tests. 2005-06-05 17:57:10 +00:00
Mike McCormack 6ef329fce7 Make sure that unused code gets compiled to avoid warnings. 2005-06-02 10:30:57 +00:00
Marcus Meissner 590aaaf454 Added stubs for GetVolumePathName(A,W). 2005-06-02 10:30:44 +00:00
Ivan Leo Puoti f0c62a89ea Added IDT emulation. 2005-05-31 13:28:42 +00:00
Alexandre Julliard 16885f09a5 Fixed RtlIsTextUnicode prototype, and made it properly take into
account the results of the tests to determine the return value.
2005-05-31 13:24:44 +00:00
Mike McCormack bdfcb09c57 Some warning fixes for the regression tests. 2005-05-31 09:30:45 +00:00
Dimi Paun 145f9972ed Fix indentation. 2005-05-29 20:00:10 +00:00
Ivan Leo Puoti eeb0a90ec9 Added some privileged instructions emulation. 2005-05-27 19:30:22 +00:00
Alexandre Julliard 70bc9f39f1 Removed STANDALONE ifdefs. 2005-05-25 09:54:51 +00:00
Rein Klazes 8481c8df81 Work around a problem where WriteFile is asked to write memory
protected by DIBSection code.
2005-05-24 12:50:24 +00:00
Hans Leidekker 97d1b11ebd Fix uninitialized warnings. 2005-05-24 12:34:29 +00:00
Steven Edwards c2b4bbef4f Split Win16 and Win32 toolhelp functions.
Compile out win87em and 16bit toolhelp functions if 16 bit support is
disabled.
2005-05-24 10:12:06 +00:00
Alexandre Julliard 5c819a9895 Support unloading 16-bit builtin modules, and properly manage the
refcount of the 32-bit owner module.
2005-05-23 12:15:26 +00:00
Kevin Koltzau d9293bfc15 Implement Module32FirstW/NextW. 2005-05-23 12:14:09 +00:00
Alexandre Julliard 70d0439905 Moved the generated code segment for 16-bit builtins inside the module
structure.
Get rid of the BUILTIN16_DESCRIPTOR structure and directly register
the MZ header instead.
2005-05-23 12:07:15 +00:00
Alexandre Julliard aebb745488 Comment out stub WEP entry points so that we can call WEP for builtin
dlls too.
2005-05-23 10:12:26 +00:00
Alexandre Julliard 1970e467d4 Generate 16-bit resources in the proper format inside the module data,
and get rid of the special case for builtins in NE_DefResourceHandler.
2005-05-20 19:19:01 +00:00
Alexandre Julliard 3d5c3609c7 Renamed __wine_(un)register_dll_16 to __wine_dll_(un)register_16 for
consistency with the 32-bit version, and also make the register
function use the same prototype as the 32-bit one.
2005-05-19 12:44:31 +00:00
Alexandre Julliard 8eb1630ce1 Use a memory mapping instead of file I/O to load 16-bit modules. 2005-05-19 12:05:28 +00:00
Dimi Paun e035e01b11 Rename back local_compact to LOCAL_Compact for consistency.
Get rid of no longer used local.h.
2005-05-19 11:13:36 +00:00
Alexandre Julliard b3e0a032ce Moved entry point definitions from module.h to kernel16_private.h. 2005-05-18 18:27:54 +00:00
Alexandre Julliard 67204137ee Generate the 16-bit module header in the standard on-disk format, so
that winebuild doesn't need to know about kernel internal structures.
2005-05-18 18:21:59 +00:00
Emmanuel Maillard 64c077860e Added Darwin 8.0 specific headers. 2005-05-18 18:20:23 +00:00
Alexandre Julliard f624b48f48 Split the module building functionality of NE_LoadExeHeader into
separate functions.
2005-05-18 17:48:28 +00:00
Alexandre Julliard 90dd7f0603 Removed implementation of LoadDIBIconHandler16 and
LoadDIBCursorHandler16 since they are no longer used, and stop
exporting NE_DefResourceHandler.
2005-05-18 15:37:41 +00:00
Pierre d'Herbemont 342da59b0c Remove stdlib.h inclusion if winsock.h is included. 2005-05-18 15:33:20 +00:00
Alexandre Julliard 964b7fb14d Changed SNOOP16_RegisterDLL to take a module handle instead of
pointer. Moved snoop function prototypes to kernel16_private.h.
2005-05-18 09:58:43 +00:00
Dimi Paun 0c4be325b1 Remove the LOCAL_*() function calls from KERNEL. 2005-05-18 09:48:32 +00:00
Alexandre Julliard 4417574d2c Renamed some fields in NE_MODULE to use the same name as in the
exported IMAGE_OS2_HEADER structure.
2005-05-17 14:36:09 +00:00
Alexandre Julliard e8a23c9572 Use the exported IMAGE_OS2_HEADER to generate the module header in the
spec file, and moved the NE_MODULE structure definition to
kernel16_private.h.
2005-05-17 10:21:29 +00:00
Alexandre Julliard 4776085c9c Moved a bunch of definitions out of module.h into a new
kernel16_private.h header.
2005-05-16 19:44:54 +00:00
Alexandre Julliard e4412a618c Removed the special casing of kernel32 and ntdll for the TEB
definition in winternl.h.
2005-05-16 17:52:10 +00:00
Alexandre Julliard 19bfcd3533 Moved the remaining stack frame definitions to kernel_private.h and
removed stackframe.h.
2005-05-16 14:45:18 +00:00
Dimi Paun bac5f4603d Use the standard Local*16() instead of LOCAL_*() functions. 2005-05-16 14:07:52 +00:00
Alexandre Julliard 95086f45a4 Moved data structures for 16-bit relay calls to winbase16.h and
removed builtin16.h.
2005-05-16 09:19:18 +00:00
Dimi Paun 5eae73de10 Avoid using some LOCAL_*() functions. 2005-05-16 08:49:39 +00:00
Dimi Paun e510a29159 Make LOCAL_*() just wrappers around Local*16() functions. 2005-05-14 12:18:15 +00:00
Alexandre Julliard d876893fc1 Store the 16-bit stack pointer in the WOW32Reserved TEB field. 2005-05-14 12:16:46 +00:00
Mike McCormack 8bcdf42710 Stub implementation for GetGeoInfo. 2005-05-11 12:57:50 +00:00
Mike McCormack 9d293981b4 Add Module32FirstW and Module32NextW exports. 2005-05-11 12:01:40 +00:00
Eric Pouech 6246c2d4c4 Get rid of include/miscemu.h. 2005-05-10 16:01:38 +00:00
Eric Pouech 16df50efbe Moved DOS memory handling to winedos. 2005-05-10 15:22:09 +00:00
Eric Pouech e6267369b2 - changed ATOM support in wineserver to match NTDLL needs
- adapted accordingly kernel32 atom support
2005-05-10 15:15:50 +00:00
Andreas Mohr 51198f8eb6 Fix for CommConfigDialog*() hwnd argument. 2005-05-09 19:32:33 +00:00
Alexandre Julliard 34fa35dc99 Added rules for building import libraries in the individual dll
makefiles, and added support for building a .def.a static import
library too.
2005-05-09 14:42:30 +00:00
Alexandre Julliard 2c7a248055 Converted all the kernel32 register functions to the
DEFINE_REGS_ENTRYPOINT mechanism.
2005-05-07 18:25:51 +00:00
Alexandre Julliard d62356aa1e Added rules to build import libraries in the individual dll makefiles.
Generate import libraries with the right name right away instead of
using an intermediate .spec.def file.
2005-05-07 12:39:52 +00:00
Francois Gouget 821d4c4645 Fix nativeapi.pm so it knows about AC_HEADER_STAT().
Make the error message about unexpected '#ifdef HAVE_XXX' clearer.
Protect sys/stat.h #includes with the corresponding '#ifdef HAVE_XXX'
check.
2005-05-06 16:22:54 +00:00
Francois Gouget f5c9da6860 Assorted spelling fixes. 2005-05-06 15:44:31 +00:00
Hans Leidekker 969c4dee50 Bump version number to XP SP2. 2005-05-04 09:47:13 +00:00
Eric Pouech 1575c940ef - delayed initialisation of BIOS and SYSTEM information until someone
actually needs it
- now using some manifest constants to make code clearer
2005-04-27 11:08:47 +00:00
Alexandre Julliard 86be9f20da Removed the MESSAGEQUEUE structure, and store the corresponding
information directly in the TEB, in the Win32ClientInfo field.
2005-04-27 08:18:20 +00:00
Mike McCormack 70d30cb54a Tests for SignalObjectAndWait. 2005-04-24 17:37:52 +00:00
Mike McCormack 0cd4317c71 Implemented SignalObjectAndWait. 2005-04-24 17:36:34 +00:00
Alexandre Julliard 4a334aed3c Move all the old config conversion code to a new oldconfig.c file, and
get rid of misc/registry.c and the misc directory.
2005-04-20 15:43:36 +00:00
Gerald Pfeifer 185ec147b9 Fix compilation problem caused by ULONG_MAX. 2005-04-20 12:51:26 +00:00
Stefan Leichter e41bd72afc Exclude crashing CreateFileW test on NT4. 2005-04-19 11:59:46 +00:00
Eric Pouech b461ddeb2d Copied the atom tests for global atom so that we can test local atoms
too.
2005-04-18 15:47:18 +00:00
Alexandre Julliard 90a1a7811f Removed unused data fields in the LANG_FIND_DATA structure. 2005-04-18 15:42:49 +00:00
Peter Berg Larsen 6aefbc0934 Strncpy elimination. 2005-04-18 15:36:20 +00:00
Eric Pouech 5a2591d96d - moved named pipe creation to ntdll
- server now handles the named pipe flags as the NTDLL values (not the
  KERNEL32 ones)
- named pipes in server now use the async IO mechanism for
  connect/wait ops
2005-04-18 14:57:04 +00:00
Rein Klazes b05cceb6f5 In AllocConsole() pass the wShowWindow value and STARTF_USESHOWWINDOW
flag from the calling process to the console process. Make wineconsole
use the CmdShow parameter in the ShowWindow call.
2005-04-14 11:30:09 +00:00
Mike McCormack d6fdac2676 Calculate the size of the next mailslot message correctly. 2005-04-11 16:11:32 +00:00
Mike McCormack 016206c1e1 Move mailslot set and query info implementation to ntdll. 2005-04-11 14:20:49 +00:00
Rein Klazes 7308f16b32 Fix some incorrect uses of the ok macro where the result depends on
the evaluation order of its arguments.
2005-03-31 19:07:08 +00:00
Mike McCormack 2ab6a775bd Implement mailslots. 2005-03-30 19:02:15 +00:00
Francois Gouget 6b10c324c5 Assorted spelling fixes. 2005-03-30 17:08:31 +00:00
Hans Leidekker 6199b28238 Return a computername constructed from the hostname. 2005-03-30 17:04:55 +00:00
Alexandre Julliard 09e00cf412 Better handling of 16-bit native dlls when a 32-bit builtin with the
same name exists; should help with the 16-bit cards.dll issue.
Replace some magic error numbers by the corresponding names.
2005-03-30 10:31:33 +00:00
Troy Rollo f51736cb0c Implement SetCPGlobal (an undocumented Win32 API). 2005-03-29 11:34:03 +00:00
Peter Berg Larsen e732fc023d Janitorial: Get rid of strncpy/strncpyW. 2005-03-28 14:17:51 +00:00
Mike McCormack 6c42be25e7 Implement CreateMailslot using NtCreateMailslotFile. 2005-03-28 10:03:56 +00:00
Jakob Eriksson 40224b6ebc Remove tests that fail badly on Windows 98. 2005-03-28 10:00:25 +00:00
Mike Hearn dc84b8a4c7 Don't fault on NULL pointers in Is*Ptr functions. 2005-03-25 16:38:50 +00:00
Jakob Eriksson ec6f9ad356 Fix thread affinity test for SMP machines. 2005-03-25 10:25:11 +00:00
Jakob Eriksson 9ed61de9a2 Get rid of HeapAlloc casts. 2005-03-24 21:01:35 +00:00
Alexandre Julliard 37698099d9 Take into account the more correct behavior of recent Linux kernels. 2005-03-24 19:05:02 +00:00
Francois Gouget 93416cdaf7 Assorted spelling fixes. 2005-03-23 13:15:18 +00:00
Alex Villacís Lasso 38a03ca6c8 Test for PeekNamedPipe with zero-length buffer. 2005-03-23 11:58:32 +00:00
Mike Hearn 3a9587e09f Log to +seh when an IsBad* function faults. 2005-03-22 21:16:39 +00:00
Alexandre Julliard 3ea748b7c8 Fetch again the file time to compare against to avoid rounding errors. 2005-03-22 21:14:51 +00:00
Jakob Eriksson 195d4018aa Abort if we can't create a named pipe at all. 2005-03-22 21:14:00 +00:00
Alex Villacís Lasso 341f98ad8f PeekNamedPipe now checks both for a NULL buffer and a zero-length
buffer before trying to recv() from the pipe.
2005-03-22 18:23:44 +00:00
Jakob Eriksson c515a306e6 If the variable does not exist, just return. 2005-03-22 18:17:07 +00:00
Jakob Eriksson caf7aefc65 Fix patching error in file time test. 2005-03-22 16:44:57 +00:00
Alexandre Julliard f1020bc6e0 Added support for the TLS expansion slots, adding an extra 1024
entries.
2005-03-19 17:14:12 +00:00
Ulrich Czekalla 11f2cb1877 GetCPInfo should return FALSE if called with NULL info buffer. 2005-03-19 17:04:56 +00:00
Jon Griffiths dbf222f3aa Use LMEM_ flags for LocalAlloc(), not GMEM_ (GlobalAlloc). 2005-03-17 20:53:37 +00:00
Dmitry Timoshkov 75b93ff1aa Match OVERLAPPED structure to the SDK definition. 2005-03-17 19:00:08 +00:00
Jakob Eriksson 7676e9b868 More trace info. 2005-03-17 18:54:31 +00:00
Jakob Eriksson 534cf2334f Fix broken test. 2005-03-16 19:49:57 +00:00
Jakob Eriksson 16ff109b0f More trace info. 2005-03-15 19:33:32 +00:00
Uwe Bonnes a12c6b662d Test for %Systemroot%. 2005-03-10 17:15:39 +00:00
Gabriel Buades Rubio 55559aa3f7 When sending multi-line boxes to console throgh WineConsoleOutputA,
only the first line was being translated into wide-chars.
2005-03-09 11:44:33 +00:00
Dimitrie O. Paun c02dd0a902 Add support for .exe's with exported functions. 2005-03-08 16:55:26 +00:00
Rein Klazes 0ed059cd77 Support execution of pif files. 2005-03-07 19:24:43 +00:00
Steven Edwards 5727918424 Added a check for poll.h. 2005-03-04 12:38:36 +00:00
Huw Davies 00ced5e3af Fix regression in GetPrivateProfileSection for lines without an '='.
Add test.
2005-03-04 10:46:55 +00:00
Francois Gouget fbb3343547 Assorted spelling fixes. 2005-03-02 13:53:50 +00:00
Alexandre Julliard d0ee9f9309 Avoid spaces before preprocessor directives, that's not portable. 2005-03-02 12:23:20 +00:00
Jakob Eriksson a604415468 Accept (shorter) date format in Win NT and Win 95. 2005-03-02 10:11:22 +00:00
Rein Klazes 4c5832ba65 When enumerating keys using Get(Private)ProfileString do not include
lines without an '=' character. Added a test that shows the behavior.
2005-03-02 10:08:18 +00:00
Marcelo Duarte 3e4813214b CopyFile needs to retain timestamp. 2005-03-01 10:42:22 +00:00
Dmitry Timoshkov 405367a44a Add another test case for file sharing. 2005-03-01 10:42:04 +00:00
Alexandre Julliard 729bfb861c Fixed regression in QueryDosDeviceA when passed a NULL device name. 2005-02-26 17:46:34 +00:00
Jon Griffiths eb5bf7dd38 Documentation spelling fixes. 2005-02-25 14:07:56 +00:00
Dmitry Timoshkov 0497af09a7 Match RaiseException and EXCEPTION_RECORD to SDK definitions. 2005-02-24 13:15:36 +00:00
Rein Klazes 288ebd3244 NtQueryPerformanceCounter should return a frequency of 1193182Hz and
counts like in Windows. Some applications depend on that.
Simplify QueryPerformanceCounter a bit.
2005-02-23 20:29:17 +00:00
Mike McCormack 3b2019badb Make lstr* functions inline inside Wine. 2005-02-22 15:50:13 +00:00
Hans Leidekker b49d92d84e Implementation stub for QueueUserWorkItem. 2005-02-21 21:02:12 +00:00
Lionel Ulmer 2f2546040d Implement 'W' variants of Process32First / Next APIs 2005-02-21 20:57:34 +00:00
Paul van Schayck 1973138190 Only stop writing a volume label if we found a non writable fat
partition.
2005-02-15 15:47:58 +00:00
Alexandre Julliard 14f9b844ce Fixed profile cache flushing when no filename is specified (reported
by Mike Hearn).
2005-02-10 21:22:31 +00:00
Francois Gouget 4d801b66e6 Assorted spelling fixes. 2005-02-10 19:19:35 +00:00
Robert Shearman 4a8b0d4c5b Convert last error from NTSTATUS to a DOS error code in WaitNamedPipe
and ConnectNamedPipe.
2005-02-08 12:08:04 +00:00
Eric Pouech 78d096c151 Moved 16 bit atom support to dlls/kernel/atom16.c. 2005-02-03 16:58:21 +00:00
Alexandre Julliard c6ec3a3203 Async callback function must be stdcall. 2005-02-03 10:43:41 +00:00
Hans Leidekker 546b432347 Stub implementation for ReadDirectoryChangesW. 2005-01-31 16:23:31 +00:00
Rémi Assailly 193d527736 char -> const char fixes. 2005-01-28 14:02:52 +00:00
Oliver Stieber 8f803ac8d7 Fill in the information in VendorIdentifier and make a better effort
at filling in Identifier in the registry key.
2005-01-28 11:29:03 +00:00
Vincent Béron 9572ae764c Change UTF-8 name back to ISO-8859-1. 2005-01-27 10:41:40 +00:00
Rein Klazes 407d863a8a Get rid of the rdtsc cpu instruction method for calculation of the
performance counter. Put the calculation (based on gettimeofday) in
NtQueryPerformanceCounter() and use that in the kernel functions.
2005-01-26 20:41:36 +00:00
Oleh R. Nykyforchyn 62b94d89bd Ukrainian codepage 21866 added and respective files corrected. Two
keyboard layouts (for Ukrainian and Russian) added.
2005-01-19 20:59:31 +00:00
Rein Klazes 47fe880924 Return a fixed frequency of 1193182 Hz for the Performance Counter. 2005-01-19 17:01:06 +00:00
Mike McCormack c1b4d7d16f Implement TransactNamedPipe for the non-overlapped case. 2005-01-19 17:00:48 +00:00
Eric Pouech 4634447d6b - got rid of include/async.h
- fixed some overlapped issues in socket handling
- moved kernel32.CancelIo implementation to ntdll
2005-01-14 19:54:38 +00:00
Rein Klazes 8032418e2d memicmpW() count are WCHAR's not bytes. Fixes opening CON device. 2005-01-11 15:09:01 +00:00
Robert Shearman 8a46494ea9 - Don't use an invalid file handle. In this case invalid file handle
means that the file hasn't yet been created.
- Only call GetFileTime when we are being logged for a tiny
  performance improvement.
- Reindent to 4 spaces.
2005-01-11 10:43:24 +00:00
Vincent Béron 53ca036a56 Use GetLocalTime (tz-dependant) instead of GetSystemTime (UTC) in
GetTimeFormat.
2005-01-07 17:08:55 +00:00
Mike McCormack 4a0f999859 Use CreateEventW in preference to CreateEventA for unnamed events. 2005-01-07 15:40:09 +00:00
Michael Stefaniuc 15a308a9d7 Do not check for non NULL pointer before HeapFree'ing it. It's
redundant.
2005-01-03 14:56:42 +00:00
Eric Pouech 9dc3843cba Fixed some regressions from the previous change. 2005-01-03 14:43:15 +00:00
Hans Leidekker f4a5ba1f6b Stub implementations for EnumDateFormatsEx{A,W}. 2005-01-03 14:32:16 +00:00
Rein Klazes 3714a39867 Correct cases where arguments of ok() calls depend on the order in
which they are evaluated.
2004-12-27 17:26:37 +00:00
Lionel Ulmer 857fc43ddf Fix non-RTDSC case for QueryPerformanceFrequency. 2004-12-27 17:16:39 +00:00
Paul Vriens 78f90d9026 Initialize dwOSVersionInfoSize in GlobalMemoryStatus. 2004-12-27 17:06:18 +00:00
Michael Stefaniuc 5ad7d858e0 Do not check for non NULL pointer before HeapFree'ing it. It's
redundant.
2004-12-23 17:06:43 +00:00
Eric Pouech bcfa5b0900 ReadFile and WriteFile must be passed a parameter for the number of
handled bytes when no overlapped operation is done.
2004-12-22 18:38:31 +00:00
Dmitry Timoshkov 5a9ba7cf2a Perform case insensitive comparison with cached ini file name. 2004-12-22 14:55:44 +00:00
Dmitry Timoshkov a8f025fd94 Uncomment call to FlushConsoleInputBuffer in FlushFileBuffers. 2004-12-22 14:51:46 +00:00
Dmitry Timoshkov 567bed8645 Postpone creation disposition check in CreateFile until it's really
used.
2004-12-21 16:12:49 +00:00
Francois Gouget 6fb1a20020 Assorted spelling fixes. 2004-12-20 19:27:06 +00:00
Andreas Mohr 08383277cb Fixed a typo. 2004-12-17 19:01:22 +00:00
Andreas Mohr 35583201e8 GetTempPath*() uses DWORD parameters instead of UINT. 2004-12-17 19:00:09 +00:00
Jon Griffiths 873cd009d0 Remove unneeded headers to reduce unneeded rebuilds. 2004-12-15 10:54:44 +00:00
Jon Griffiths 7b188952a5 Documentation fixes. 2004-12-15 10:48:18 +00:00
Rein Klazes 5dc91e6c08 A starting process must obey the STARTF_USESTDHANDLES flag and use the
standard io handles from the StartupInfo structure, even if it is
starting a new console.
2004-12-15 10:47:23 +00:00
Alexandre Julliard d5088668de Generate stub entries on the fly for missing entry points instead of
returning a deadbeef pointer.
2004-12-14 20:03:23 +00:00
Ken Belleau c7471d11ef Implemented EnumCalendarInfo(A/W/ExA/ExW). 2004-12-14 19:59:43 +00:00
Eric Pouech 4056d7ef8c Fixed some errors in function prototypes. 2004-12-13 21:19:01 +00:00
Alexandre Julliard ebe3c529b1 Janitorial: C booleans must not be compared against TRUE. 2004-12-09 14:07:59 +00:00
Juan Lang a4d4d1979b Use W calls rather than A in CreatePipe. 2004-12-07 14:23:03 +00:00
Dmitry Timoshkov 902cb4201b Perform host name initialization if computer name can't be read from
registry.
2004-12-06 11:38:25 +00:00
Eric Pouech 44158dd690 - moved event, semaphore, mutex implementation from kernel32 to ntdll
- added mutant implementation in ntdll, and use it for mutex
  implementation in kernel32
- added access parameter on event, semaphore, timer creation in
  wineserver (as ntdll interface requires it)
- added missing definitions in include/winternl.h
2004-12-02 18:05:37 +00:00
Dmitry Timoshkov fafe030e9a Always create a suspended thread in CreateThread and resume it if
CREATE_SUSPENDED flag is not set as Windows does.
2004-12-01 15:37:26 +00:00
Gunnar Dalsnes 3f884c2c7e Added a test to make sure that CreateDirectoryA/W does not create
multiple non-existing directories in the path given.
2004-11-29 17:52:06 +00:00
Dmitry Timoshkov e04da6bb72 Add a test for ReadFile/WriteFile fault handling, make it pass under
Wine.
2004-11-28 14:58:11 +00:00
Dmitry Timoshkov b3d647384c Remove useless calls to IsBadReadPtr from ReadFile and WriteFile. 2004-11-24 18:07:52 +00:00
Kevin Koltzau 1b8a8b26af Prevent environment test from crashing when environment is large. 2004-11-22 18:28:56 +00:00
Alexander Yaworsky 6d9d114303 Changed allocation of arguments in SearchPathA so path is not limited
by size of TEB static buffer.
2004-11-22 18:25:05 +00:00
Dmitry Timoshkov c590a66f89 Call CompareStringA with LOCALE_USE_CP_ACP flag set from lstrcmpA and
lstrcmpiA in order to improve speed. Add a test case confirming that
CompareString and LCMapString accept LOCALE_USE_CP_ACP.
2004-11-21 15:47:24 +00:00
Eric Pouech 6d0712a375 Moved kernel32.DeleteFileW core implementation to ntdll.NtDeleteFile. 2004-11-21 15:29:44 +00:00
Rein Klazes dceae02d73 - RtlTimeFieldsToTime should not normalize the time fields
structure. Instead return error when it is given an unormalized
  date.
- Use better algorithms for RtlTimeToTimeFields and
  RtlTimeFieldsToTime. RtlTimeToTimeFields is about 3 times faster.
- Add tests for RtlTimeFieldsToTime.
- SystemTimeToFileTime must fail if RtlTimeFieldsToTime fails. Users
  of SystemTimeToFileTime must do likewise.
- Remove a todo_wine from SystemTimeToFileTime tests.
- Since msvcrt.mktime must accept unnormalized dates, it cannot use
  SystemTimeToFileTime and do the calculations itself.
- Add some tests for mktime accepting unnormalized dates.
2004-11-06 03:53:53 +00:00
Dmitry Timoshkov 65051ec8e2 Add unix locale to code page mapping for ISO-8859-16. 2004-11-04 21:06:03 +00:00
Robert Shearman 84eaaa168f Fix broken thread start routines. 2004-11-03 22:18:44 +00:00
Stefan Leichter ddae31893d Set the correct last error in EnumUILanguagesA, with tests. 2004-11-01 21:06:28 +00:00
Francois Gouget 65f1958249 Add support for REG_EXPAND_SZ in set_registry_variables().
Fix processing of environment variables that are too big (>1024
characters): they should be truncated, not ignored.
2004-10-30 02:11:33 +00:00
Rein Klazes cfeef723d2 - Simplify the calculation in TIME_DaylightCompareDate;
- Expand the number of applicable test cases.
2004-10-29 21:27:18 +00:00
Rein Klazes 073329fa1b In VOLUME_ReadFATSuperblock:
- do not test on the JMP instruction: most boot blocks have that
- test instead on the "FAT" strings first, before the size
  calculation
- do some parameter checking to prevent arithmetic errors
- use meaningful names instead of block offsets
(based on a rejected patch from Vincent Béron).
2004-10-28 21:00:36 +00:00
Rein Klazes d694a376c7 - Reordered some code from the existing helper _GetTimeZoneBias to
make it more general useful (and changed the helper names to
  TIME_xyz).
- Make GetTimeZoneInformation return the correct zone id constants.
- Changed some "const LPX_Y_Z" declarations to "const X_Y_Z *".
2004-10-27 21:19:22 +00:00
Mike McCormack d581777c88 Add some tests for time conversion functions. 2004-10-26 22:03:11 +00:00
Alexandre Julliard bf88644cee Convert CommConfigDialog to Unicode. 2004-10-26 00:25:58 +00:00
Mike McCormack 568a91dfd1 SERIALUI: convert to Unicode. 2004-10-26 00:16:39 +00:00
Rein Klazes 4cf122d2aa Correctly use the return value of GetTimeZoneInformation. 2004-10-26 00:11:43 +00:00
Eric Pouech 4bb5d3ab3e - fixed the way length of msvcrt runtime info is passed
- always return a NULL runtime info buffer in child if parent's
  runtime info is NULL
- fixed typo in startupinfo size
2004-10-25 21:47:23 +00:00
Francois Gouget 3bb5b093e8 Assorted spelling fixes. 2004-10-22 22:27:51 +00:00
Francois Gouget 40692f2aa4 There is no point making '--register' functions stdcall so just
implement them as cdecl.
2004-10-22 19:55:14 +00:00
Vincent Béron 6c644d68cf Fix various function prototypes. 2004-10-19 23:55:15 +00:00
Stefan Leichter 165b24b5e1 Added dummy implementation for EnumUILanguagesA/W. 2004-10-19 23:50:36 +00:00
Mike McCormack 53daa59740 Implement CallNamedPipeA using CallNamedPipeW. 2004-10-19 21:08:58 +00:00
Hans Leidekker 6e8f4f3c69 Avoid using gettimeofday(). 2004-10-18 19:38:41 +00:00
Robert Shearman 2050591370 Fix NtAllocateVirtualMemory declaration and fix users of the
function.
2004-10-11 20:59:06 +00:00
Alexandre Julliard de91a8dd0f Implemented NtYieldExecution. 2004-10-11 20:11:01 +00:00
Hans Leidekker b741905cf1 Avoid using gettimeofday. 2004-10-11 19:53:54 +00:00
Hans Leidekker 84e9eb65af Include stdio.h for MinGW. 2004-10-11 19:53:13 +00:00
Ferenc Wagner cbf4c5c650 Unconditionally open a fresh console for the tests. 2004-10-08 23:35:47 +00:00
Vincent Béron 157b32c0f1 Correct the calling convention of GetSystemWow64Directory{A,W},
AmpFactorToDB and DBToAmpFactor.
2004-10-08 21:01:44 +00:00
Vincent Béron 9fc774eb49 Keep the original resources if !bDeleteExistingResources in
BeginUpdateResourceW.
Pass the correct handle to callback functions in
BeginUpdateResourceW.
Fix a bug while saving data in memory in UpdateResourceW.
2004-09-29 21:10:44 +00:00
Robert Shearman 240c02bbfe - Don't perform event check if in system code. Fixes infinite
recursion bug.
- Fix stack corruption that could occur in K32WowCallback16Ex if an
  event check was inserted.
2004-09-28 19:18:06 +00:00
Alexander Yaworsky 3f40590e93 Moved code from CreateThread to CreateRemoteThread. 2004-09-22 02:54:13 +00:00
Mike McCormack d80eb97b29 Use FILE_SHARE_DELETE when loading modules, as running an exe that's
going to be deleted should work.
2004-09-15 18:02:49 +00:00
Vincent Béron 2919a9a7a8 Implement BeginUpdateResource and UpdateResource.
Stub out a bit more of EndUpdateResource.
2004-09-14 01:06:54 +00:00
Eric Pouech e780ea5230 Fixed (finally) ScrollConsoleScreenBuffer implementation. 2004-09-13 18:04:50 +00:00
Andreas Mohr 85b06836a5 Don't reject OS/2 programs, try to carry on in DOS mode. 2004-09-10 21:16:02 +00:00
Rein Klazes bb2796f9aa Add tests of TzSpecificLocalTimeToSystemTime and
SystemTimeToTzSpecificLocalTime.
2004-09-10 19:35:16 +00:00
Rein Klazes d788e03057 Fixed TzSpecificLocalTimeToSystemTime and
SystemTimeToTzSpecificLocalTime:
- take the time of day into the calculation, so the bias is calculated
  correctly during the transition days;
- the transition times are expressed as local time, not system time;
- correct the daylight logic for use on the southern hemisphere;
- beautify some LONGLONG arithmetic.
2004-09-10 19:35:06 +00:00
Alexandre Julliard 0e3df810de Comment out an unreliable test. 2004-09-09 20:16:23 +00:00
Alexandre Julliard bb8f36addc Fixed the check for removable media in load_pe_exe (spotted by
Francois Gouget).
2004-09-09 00:26:57 +00:00
Francois Gouget 3af8a1e16f Set _WIN32_WINNT to 0x0501 so we get the definition of
PTIMERAPCROUTINE from the Windows headers.
2004-09-08 19:06:07 +00:00
Eric Pouech 440ad8ccf2 - ctrl-c enabling flag is now inherited
- fixed console-related fields in RTL_USER_PROCESS_PARAMETERS
- various clean-up in kernel32.SetConsoleCtrlHandler
- only send a console event once to a process and not to all the
  process' threads
2004-09-08 01:25:05 +00:00
Mike McCormack b6b3fe10d6 Add a test for timers. 2004-09-07 23:28:32 +00:00
Francois Gouget 5512ae2685 Disable MSVC warning 4116 to avoid the 'unnamed type definition in
parentheses' warning caused by TYPE_ALIGNMENT().
2004-09-06 20:29:53 +00:00
Eric Pouech 0bfb1cbc6b - msvcrt: the file descriptors are now inherited between parent/child
processes
- kernel32.CreateProcess: make use of the *reserved2 fields for
  C-RunTime data inheritance
2004-09-03 01:05:30 +00:00
Filip Navara c880c41f7a - Don't expect that drive C: exists, use the drive Windows is
installed on instead.
- Remove misleading message about file mapping.
2004-08-30 18:40:20 +00:00
Robert Shearman 7ed44d529a Improve documentation for debugger functions. 2004-08-26 18:22:17 +00:00
Francois Gouget 20b8b56d5f Enable the disabled tests in tests.data or add a comment describing
why the type cannot be tested.
Update the generated files, they compile and run successfully both on
Windows (with the Windows headers) and in Wine.
2004-08-25 00:42:50 +00:00
Francois Gouget 2e360b3ee4 Fix alignment issues for MEMORYSTATUSEX, WIN32_STREAM_ID and
IO_COUNTERS. The corresponding tests now succeed both when compiled
with the Windows headers and when compiled with the Wine headers.
2004-08-24 20:16:25 +00:00
Robert Shearman 3ae44f72b9 Added GetProcessId. 2004-08-24 18:46:05 +00:00
Dmitry Timoshkov 6f94fde7d2 GetCPInfo(Ex) should work on CP_UTF7/CP_UTF8 pseudo code pages, as
IsValidCodePage does.
2004-08-23 17:52:02 +00:00
Francois Gouget 68232c6c2f Remove types that don't exist from tests.dat.
Don't test types that have a platform dependent layout.
Don't test Wine-only types.
Helps get the generated tests compiling on Windows.
2004-08-19 20:34:42 +00:00
Robert Shearman eee6adc9b6 - Errors should only be reported to I/O completion routine after
NtReadFile has succeeded.
- Test case for this behaviour.
2004-08-19 02:34:51 +00:00
Emmanuel Maillard 2300ce663a - Update build system to support IOKit and CoreFoundation frameworks
on Darwin.
- Add support for the -framework "name" linker option.
- NtQueryVolumeInformationFile set device info on Darwin.
2004-08-19 01:20:45 +00:00
Alexandre Julliard 905e75f8e9 The argv array passed to the app needs to be in the Ansi codepage, not
the Unix one.
2004-08-18 21:03:32 +00:00
Alexandre Julliard 6a27b48895 Fd type is no longer used, get rid of it. 2004-08-18 00:04:58 +00:00
Eric Pouech 1ffddb4d0c - better support for non-blocking COMM and socket read/writes:
+ added necessary semantics to fd flags
  + no longer uses fd type (but fd flags) read/write semantic behavior
- fixed socket code to use the proper manifest constants
- fixes for kernel32.GetOverlappedResult without hEvent set
- in ntdll.Nt{Read|Write}File
  + always reset the event
  + added support for longlong offsets
  + better object disposal in error handling code paths
2004-08-17 23:37:55 +00:00
Robert Reif 778168c316 Fix BSD build. 2004-08-13 19:47:11 +00:00
Alexandre Julliard ff039ccdf3 We don't need the shared heap on non-i386 platforms. 2004-08-13 00:42:09 +00:00
Robert Reif 22174de9bb Use GlobalMemoryStatusEx in GlobalMemoryStatus rather than the other
way around.
2004-08-13 00:41:34 +00:00
Alexandre Julliard b459952144 Avoid some non-portable makefile constructs, and get rid of the
ALTNAMES variable.
2004-08-11 23:59:06 +00:00
Hans Leidekker 9baafec900 Fix signed/unsigned comparison warnings. 2004-08-10 23:43:21 +00:00
Hans Leidekker 70d400adf6 Fix signed/unsigned comparison warnings. 2004-08-09 23:42:19 +00:00
Mike McCormack e3d8853bb8 Moved FlushInstructionCache to ntdll. 2004-08-04 18:15:04 +00:00
Alexandre Julliard 81b22375d0 Added support for getting and setting the UI language. 2004-07-30 01:45:16 +00:00
Vincent Béron 6dc4e2af82 Remove last winedefault.reg reference in the code. 2004-07-23 23:17:13 +00:00
Alexandre Julliard c95b984882 Avoid lvalue casts (based on a patch by Marcus Meissner). 2004-07-23 19:09:35 +00:00
Alexandre Julliard 2c90b52bbc Rewrote load_messageA/W to deal properly with multibyte characters. 2004-07-20 22:12:21 +00:00
Mike Hearn 850dcad17d Make STARTUPINFO.lpDesktop tests pass on NT. 2004-07-20 01:20:50 +00:00
Shachar Shemesh 8c24ef7845 System default locale in Windows determines the ANSI encoding
(LC_CTYPE on Unix).
2004-07-16 23:44:18 +00:00
Alexandre Julliard c4ec2108b1 Pass the environment for a child process through the server instead of
relying on the Unix environment.
2004-07-16 03:54:35 +00:00
Alexandre Julliard df55257115 Support for large profile values (based on a patch by Robert
Shearman).
Fixed PROFILE_FlushFile to correctly truncate the file before saving
it.
2004-07-16 02:45:00 +00:00
Alexandre Julliard 9f58ee709d Set the system directory in ntdll as soon as we have determined it. 2004-07-15 22:07:21 +00:00
Rein Klazes 932533ca09 In GetVolumeInformationW handle the case when there are no permissions
accessing the device the same way as when no device is found.
2004-07-13 23:33:47 +00:00
Rob Shearman 95dc472698 Add TRACE to ReadFileEx. 2004-07-09 22:24:59 +00:00
Roger Olson 0da4277a62 Added stub for CreateRemoteThread(). 2004-07-07 00:49:34 +00:00
Dmitry Timoshkov 3d36713c2a Initialize also ACP, OEMCP and MACCP in registry on locale change. 2004-07-07 00:47:31 +00:00
Mike Hearn 95012151f9 Correct error code returned by CreateFile when given a non-existent
VxD on NT, add a test case.
2004-07-06 21:31:24 +00:00
Vitaly Lipatov f11ea29268 Return proper codepage value in GetCPInfoEx. 2004-07-04 00:07:42 +00:00
Alexandre Julliard 2130f61310 In GlobalMemoryStatus, also cap the sum of dwAvailPhys and
dwAvailPageFile at 2Gb to avoid a bug in Photoshop 4.
2004-06-24 04:08:33 +00:00
Stefan Leichter de16a00fa5 Fix the GetPrivateProfileIntA tests for the win9x platform. 2004-06-17 23:00:54 +00:00
Alexandre Julliard 9cb122c2ef Added a couple of tests for SetCurrentDirectoryA. 2004-06-17 04:26:59 +00:00
Marcus Meissner 751e991210 Fixed some illegal lvalue casts / increments. 2004-06-16 19:02:11 +00:00
Francois Gouget 497709b9bb Assorted spelling and case fixes. 2004-06-15 20:26:45 +00:00