Commit Graph

1467 Commits

Author SHA1 Message Date
Alexandre Julliard e968628e6a Avoid setting the context before the thread has started running, it's
broken on most Windows versions.
2005-11-18 15:06:38 +00:00
Alexandre Julliard ba2cb7c97b Added a few more Unicode digits from Unicode version 4.1. 2005-11-18 12:15:59 +00:00
Dmitry Timoshkov ccf041a14d Use case insensitive comparison to check file extensions. 2005-11-18 12:06:57 +00:00
Robert Shearman eeb0062fbb The BOM doesn't need a DWORD sized variable, only a WCHAR one.
Don't increment the szFile pointer since we removed the BOM earlier
and it will cause the first real character of the INI file to be
skipped.
2005-11-17 11:05:46 +00:00
Detlef Riekenberg f81694cc0c Made test loadable on NT 3.51 again (GetDiskFreeSpaceExA not present). 2005-11-15 16:53:09 +00:00
Cihan Altinay 3167958b3b Disable PARMRK input flag of serial ports. 2005-11-15 16:51:28 +00:00
Paul Vriens 17cbf1cbca Corrected last error information.
Make sure we can run the tests on win9x.
2005-11-15 12:00:41 +00:00
Eric Pouech ca4ae96f33 NtReadFile: now returning correct status in NtReadFile for EOF
conditions (on files) and broken pipe (on named pipes).
2005-11-14 15:11:11 +00:00
Eric Pouech ff6d30e485 Fix set_test_val function declaration to ensure stack is left
untouched.
2005-11-14 11:23:11 +00:00
Paul Vriens 7aa2e18c29 Add some extra error information. 2005-11-12 19:11:05 +00:00
Phil Lodwick bf8319fdd5 prefix can be NULL for GetTempFileNameW. 2005-11-12 19:09:06 +00:00
Vincent Béron 182cabea90 Protect sys/stat.h with a conditional. 2005-11-11 10:53:30 +00:00
Francois Gouget 0edbaf7e80 Remove spaces before '\n' in traces. 2005-11-10 12:14:56 +00:00
Francois Gouget 2adb302a99 Add trailing '\n's to ok() and TRACE() calls. 2005-11-10 11:17:38 +00:00
Saulius Krasuckas 63f8bdaa4e Add error code valid for Win9x and XP. 2005-11-10 11:16:20 +00:00
Robert Lunnon 53b4c0f646 Implement GlobalMemoryStatusEx for Solaris. 2005-11-08 16:10:01 +00:00
Saulius Krasuckas 7ff494101a Take into account some alignment done by HeapAlloc() on Win9x. 2005-11-08 16:09:44 +00:00
Markus Amsler b8d9b6192d Improve c2man Documented-Total count. Changes:
- add missing description
- add missing returns section
- complete missing A/W pairs
- reformate comments, to match c2man requirements
2005-11-08 11:01:03 +00:00
Uwe Bonnes cb971b3def More verbose output when unhandled exception occurs. 2005-11-04 11:42:48 +00:00
Alexandre Julliard 6ed28ada49 Fixed fd leaks (spotted by Cihan Altinay). 2005-11-03 11:38:48 +00:00
Alexandre Julliard 73c72390f8 Fixed Get/SetThreadContext to work properly on suspended threads.
Added a test case.
2005-11-02 20:54:12 +00:00
Alexandre Julliard ff7795ef4c Don't send an extra signal when waiting for a debug event, just do a
normal wait.  Return the debug event status directly as return value
of the server call.
2005-11-01 21:47:07 +00:00
Bernd Schmidt 60fc2425e3 Implemented FindExSearchLimitToDirectories. 2005-11-01 21:37:05 +00:00
Marcus Meissner 5c256c518f Define obsoleted CLK_TCK to CLOCKS_PER_SEC if not there. 2005-10-31 10:04:57 +00:00
Eric Pouech 289889c9ec Implemented local/global atom creation, deletion & lookup on top of
ntdll.
2005-10-29 12:37:42 +00:00
Saulius Krasuckas f91b3ae3e4 Test CreateThread() for reception of NULL pointer to TID. 2005-10-28 10:41:57 +00:00
Saulius Krasuckas d2e0d5e8bd Don't send a CTRL_C_EVENT signal to console if we are on Win9x and
console signal handler is set to NULL.
2005-10-28 10:40:42 +00:00
Saulius Krasuckas 02a810f10c Add a test for GetThreadExitCode.
Use GetModuleHandleA as kernel32 should be present on every system.
2005-10-28 09:40:09 +00:00
Uwe Bonnes 457ece155f Test for argv handling. 2005-10-27 10:25:49 +00:00
Alexandre Julliard a51f2becf6 In FindNextFileExW don't report directory symlinks that point to one
of the parent directories, to avoid infinite recursions.
2005-10-26 13:57:45 +00:00
Vitaliy Margolen c3bb842237 Test for return value from CreateDirectory("c:"). 2005-10-26 10:08:20 +00:00
Rein Klazes 551ef36517 In GetDiskFreeSpace:
- only cap the total size and available size to 2GB in Win3.x thru
  WinME;
- in that case adjust number of clusters to be less then 65536 by
  increasing the cluster size;
- add corresponding tests.
2005-10-20 11:36:40 +00:00
Vitaliy Margolen 64896241b8 LoadLibrary should ignore trailing spaces in the library name. 2005-10-18 14:10:56 +00:00
Alexandre Julliard 7886cacbf5 Revert previous change, OF_EXIST really returns HFILE_ERROR. 2005-10-18 10:39:15 +00:00
Uwe Bonnes dbdf3df4d9 Remove unspecific FIXME. 2005-10-17 09:23:22 +00:00
Alexandre Julliard 7c871f0ce4 Ignore empty environment strings. 2005-10-17 08:56:41 +00:00
Detlef Riekenberg 9d7c5911be NT3.51 returns ERROR_MORE_DATA. 2005-10-11 19:58:38 +00:00
Mike McCormack 4e700d36e0 Make sure not to strcpy from a NULL default value pointer. 2005-10-11 19:27:03 +00:00
Maxime Bellengé 91ff09b679 In case of failure and OF_EXIST is specified, return FALSE instead of
HFILE_ERROR.
2005-10-10 11:19:31 +00:00
Christian Costa dd3d1e389a Add trace to DefineDosDevice. 2005-10-10 10:44:35 +00:00
Marcus Meissner 4a7666190f Pass characters to get_file_name() helper, not bytes. 2005-10-10 10:28:48 +00:00
Vitaliy Margolen 593ab4cac4 Fix atom tests on win9x. 2005-10-06 11:35:32 +00:00
Joshua Davies dcba743bd1 Windows is returning the length of the string, plus the CRLF
delimiters, whereas wineconsole is returning one less.
2005-10-06 11:35:24 +00:00
Vitaliy Margolen eabc93a1eb Add brackets around (a)?b:c construct. 2005-10-06 11:32:53 +00:00
Alexandre Julliard 2bbf1b5baf Set WINEDEBUG to an empty value instead of removing it so that it gets
properly cleared in the debugger.
2005-10-04 18:14:22 +00:00
Alexandre Julliard ce1196a84b Copy WINEDEBUG from the Windows environment to allow passing a
modified value to a child process.
2005-10-04 18:09:51 +00:00
Vitaliy Margolen 7e9b17f745 Add brackets around (a)?b:c construct. 2005-09-30 10:33:43 +00:00
Alexandre Julliard 7e22be4d84 We are no longer generating .dbg.c files. 2005-09-29 10:35:58 +00:00
Alexandre Julliard 7ddab75619 Declare debug channels as static variables so that we don't need to
generate an external .dbg.c file to define them.
2005-09-28 18:34:00 +00:00
Eric Pouech c43e416bc3 Added a bunch of test cases for atoms. 2005-09-28 11:58:20 +00:00
Alexandre Julliard 60a52559ac Don't apply relocations a second time to self loaded segments.
Fixed messed up indentation in NE_FixupSegmentPrologs.
2005-09-27 11:03:18 +00:00
Eric Pouech b09582a890 Implemented kernel32 process affinity handling on top on ntdll. 2005-09-27 10:52:10 +00:00
Alex Villacís Lasso f89c69c4cf Tolerate ioctl failure in GetCommState() in order to be capable to use
softmodems.
2005-09-27 09:32:17 +00:00
Alexandre Julliard 43c6396e94 Use int instead of long in interlocked_* functions for 64-bit
compatibility.
2005-09-26 13:51:58 +00:00
Alexandre Julliard 81d64af17e Use a larger buffer in CopyFileW now that the file handle may not
always be cached.
2005-09-26 13:26:40 +00:00
Eric Pouech e21aa6a184 - now passing access rights when creating a named pipe in NTDLL
- reimplemented Kernel32.CreatePipe purely on top of NTDLL APIs
- anonymous pipe handles should have the SYNCHRONIZE bit set
2005-09-26 11:02:45 +00:00
Alexandre Julliard 9f859692f9 Replace DPRINTF by TRACE in a few places. 2005-09-25 15:23:21 +00:00
Alexandre Julliard 0ec0f048e6 Removed unused debug channels. 2005-09-22 10:44:40 +00:00
Alexandre Julliard 9f1c6de1ef We are no longer generating .spec.c files. 2005-09-21 14:42:52 +00:00
Alexandre Julliard 5cb97d833a Generate 16-bit spec files as assembly code too. 2005-09-21 14:23:54 +00:00
Vitaliy Margolen 97c944c061 Specify flag OBJ_CASE_INSENSITIVE when calling appropriate Ntxx
functions creating/opening named objects.
2005-09-21 11:42:30 +00:00
Alexandre Julliard 96508ad686 Moved return value handling to the individual relay thunks so that we
only need one version of wine_call_from_16.
Patch the wine_call_from_16 address along with the cs value directly
in the 16-bit code segment to avoid the need for special magic in the
import thunks.
2005-09-18 12:25:22 +00:00
Alexandre Julliard 7c1925a0f3 Remove the 'L' suffix on a number of constants to avoid comparison
errors on 64-bit platforms.
2005-09-13 15:00:32 +00:00
Eric Pouech ad0168967e Implemented kernel32.GetThreadTimes on top of ntdll's equivalent
function.
2005-09-12 22:01:33 +00:00
Alexandre Julliard ba41fe20bc Fixed a few more pointer to integer typecast issues for 64-bit
platforms.
2005-09-12 21:22:32 +00:00
Alexandre Julliard e1646dd215 Use MAKEINTRESOURCE instead of casts where appropriate. 2005-09-12 20:29:16 +00:00
Alexandre Julliard f367051afe Parameters to virtual memory functions need to be SIZE_T. 2005-09-12 15:35:04 +00:00
Dmitry Timoshkov 2372e9c952 strcpynAtoW takes number of characters, not bytes. 2005-09-12 15:33:50 +00:00
Alexandre Julliard 261e376495 Fixed a number of pointer to integer conversions that wouldn't work
right on a 64-bit platform.
2005-09-12 15:14:06 +00:00
Alexandre Julliard c6b005ac69 Fixed some more traces to use the right printf format and avoid
typecasts.
2005-09-12 14:12:46 +00:00
Alexandre Julliard f8ee161a1b Fixed some traces to use the right printf format and avoid typecasts. 2005-09-12 10:30:05 +00:00
Alexandre Julliard 4c34d9386c Specify 64-bit integers as double instead of long long in spec files
so that we get the correct number of arguments.
2005-09-09 15:05:01 +00:00
Alexandre Julliard 20a1a203c6 Use a more portable scheme for storing the name of a critical
section.
2005-09-09 10:19:44 +00:00
Mike McCormack fe1ec78841 Fix gcc 4.0 warnings. 2005-09-08 11:04:53 +00:00
Eric Pouech 60cae6e289 Implemented kernel32:SetThreadPriority on top of ntdll's equivalent
functions.
2005-09-07 13:25:35 +00:00
Aric Stewart 087de7d439 Fix the translation of dest to DestW, having it be NULL vs "" has
different meanings for MoveFileEx.
2005-09-07 09:23:34 +00:00
Ivan Leo Puoti f0db7ab06b Added FSCTL_PIPE_LISTEN support. 2005-09-06 14:09:42 +00:00
Marcus Meissner 8063b89cc6 Remove -DETCDIR (unused). 2005-09-06 14:03:38 +00:00
Alex Villacís Lasso 7a843c668e Check against NULL libname in LoadModule16. 2005-09-06 11:40:51 +00:00
Eric Pouech b3badc7dd3 - rewrite kernel32:{Set|Get}PriorityClass on top of ntdll equivalent
- priority for process in wineserver is now the NTDLL form (no longer
  the kernel32 one)
2005-09-06 10:25:11 +00:00
Eric Pouech b379e420ed Fixes for function prototypes without arguments. 2005-09-06 09:27:37 +00:00
Ivan Leo Puoti 6e508761bf Get ExitProcess to call NtTerminateProcess. 2005-09-06 09:25:19 +00:00
Phil Krylov 6306b962f4 Fixed compilation of kernel32.dll.so on non-x86 processors. 2005-09-06 09:21:50 +00:00
Alexandre Julliard 883d3c52d3 Use explicit function pointers for pthread support instead of relying
on ELF symbol overriding.
2005-09-03 15:11:29 +00:00
Alexandre Julliard 4ce3dc20d7 Moved the implementation of a couple of system.drv entry points to
system.c.
2005-08-29 12:26:19 +00:00
Alexandre Julliard 41f2189417 Removed a few no longer used 16-bit exports. 2005-08-29 10:27:25 +00:00
Alexandre Julliard 7dc790d877 Moved TaskFindHandle16 to toolhelp16.c. 2005-08-29 10:26:48 +00:00
Alexandre Julliard f484a6b959 Moved GlobalMasterHandle to global16.c. 2005-08-29 10:26:10 +00:00
Alexandre Julliard 510acffe08 Moved the kernel 16-bit initialization to a new DllEntryPoint routine
in krnl386.
2005-08-29 10:20:51 +00:00
Alexandre Julliard 6c6a5729d9 Don't try to initialize the 16-bit thunking code if 16-bit support is
disabled.
2005-08-27 10:18:03 +00:00
Alexandre Julliard 73cb76542f Rewrote Get/SetHandleInformation to call the corresponding ntdll
functions.
2005-08-23 18:20:59 +00:00
Ivan Leo Puoti e5131213f6 Let DeviceIoControl call the appropriate native interface. 2005-08-22 14:08:39 +00:00
Gerald Pfeifer ebe0484d1a Prefer sys/limits.h over machine/limits.h. 2005-08-22 09:33:37 +00:00
Phil Krylov 8b226cb921 Fixed InterLocked* function definitions for non-x86 platforms in
accordance with the recent corresponding change of their declarations
in winbase.h.
2005-08-22 09:23:32 +00:00
Marcus Meissner 6c2eae254f Protect GlobalAddAtomA string handling by exception handler (for
broken programs).
2005-08-19 15:20:06 +00:00
Gerald Pfeifer 523fef0c77 Enable SCSI_getprocentry() on non-Linux platforms which now should be
safe to do.
2005-08-19 09:58:40 +00:00
Ivan Leo Puoti aab12f5f7c Implement FSCTL_PIPE_DISCONNECT in NtFsControlFile and make
DisconnectNamedPipe call it.
2005-08-18 10:59:26 +00:00
Saulius Krasuckas abfe0f2f72 Test passing NULL source to WideCharToMultiByte. 2005-08-18 10:50:46 +00:00
Mike McCormack f58e9f9e4b gcc 4.0 warning fixes. 2005-08-17 10:28:35 +00:00
Francois Gouget fae73a1090 Assorted spelling fixes. 2005-08-17 09:56:24 +00:00
Dmitry Timoshkov e3181e3fcc Report swap file total/free sizes to be the same as physical memory.
Make sure that we cache all calculated values.
2005-08-16 16:00:36 +00:00
Alexandre Julliard 19c1af5b01 Set the default system dir to windows/system32. 2005-08-15 14:53:35 +00:00
Mike McCormack 61aabd66f5 Warning fixes for gcc 4.0. 2005-08-15 10:49:39 +00:00
Vitaliy Margolen 131d3f1f90 Add entry for int 2 handler. 2005-08-15 09:42:36 +00:00
Francois Gouget bcd56fe0e5 Assorted spelling fixes. 2005-08-12 18:22:06 +00:00
Alexandre Julliard 646f17f249 Implemented DelayLoadFailureHook and use it in the winebuild-generated
delay load code.
2005-08-12 16:00:42 +00:00
Alexandre Julliard d4441f2817 Add the 16-bit system directory if any to the module search path. 2005-08-12 11:29:43 +00:00
Alexandre Julliard 5f226e55cb Make 16-bit task properly inherit the current directory of their
parent (based on a patch by Richard Cohen).
2005-08-11 18:36:36 +00:00
Frank Richter 59970a7c04 Fix a crash on startup when /proc/ide does not exist. 2005-08-11 17:05:47 +00:00
Alexandre Julliard e859359211 Added a wine_get_dos_file_name function in kernel32 as a wrapper
around the new wine_unix_to_nt_file_name.
2005-08-11 11:07:17 +00:00
Alexandre Julliard d05532e2d6 Directly use the PEB version fields in GetVersion. 2005-08-10 15:02:28 +00:00
Francois Gouget 840f594896 Add trailing '\n's to trace() call. 2005-08-10 14:42:48 +00:00
Alexandre Julliard 915aebb852 Moved the version initialization to ntdll.
Properly set the version fields in the PEB.
Removed some no longer used structures.
2005-08-10 13:12:27 +00:00
Francois Gouget 5a47bc246a Update the documentation to reflect the fact that the LZ* functions
are implemented in kernel32.dll now.
2005-08-10 13:00:38 +00:00
Richard Cohen 8cbf08b5d5 - Fix regression in GetPrivateProfileString16 for key=NULL.
- Check return values in Profile tests.
2005-08-10 12:59:38 +00:00
Alexandre Julliard 628939d567 Use the proper WOW functions everywhere instead of the K32WOW variant. 2005-08-10 10:59:19 +00:00
Vitaliy Margolen 6ce9a791ff Use /proc filesystem to create HKLM\HARDWARE\DEVICEMAP\Scsi entries. 2005-08-10 10:52:10 +00:00
Alexandre Julliard 475f2336cc Specify a base address for kernel and ntdll. 2005-08-09 11:19:01 +00:00
Gerald Pfeifer 7eb982a48d Fix autoconf-related #ifdefs in Comm_CheckEvents(). 2005-08-08 18:01:42 +00:00
Uwe Bonnes bd127b0338 More comm tests. 2005-08-03 15:43:46 +00:00
Uwe Bonnes 867f66ffe8 Implement WaitCommEvent by polling the appropriate data sources. 2005-08-03 15:43:17 +00:00
Alexandre Julliard dab980e0fc Implemented Get/SetDllDirectory. 2005-08-02 14:56:53 +00:00
Alexandre Julliard 57cd2df559 Fixed white space handling on the last line (reported by Jeremy
White).
Avoid parsing the same line twice when it contains trailing spaces.
2005-08-02 10:00:32 +00:00
Alexandre Julliard 4de75b5a6f Use the new RtlExitUserThread function instead of exporting
wine_server_exit_thread.
2005-08-02 09:55:40 +00:00
Alexandre Julliard 7be607f7c0 Added commented out stubs for a bunch of new functions. 2005-08-01 14:59:26 +00:00
Felix Nawothnig 71a03671b7 Fix sync tests on Win98/ME. 2005-08-01 10:57:13 +00:00
Felix Nawothnig 7c44e00699 Fix module tests on Win9x. 2005-08-01 10:57:04 +00:00
Felix Nawothnig 7eb81fabeb Fix comm tests on Win9x. 2005-07-30 19:04:30 +00:00
Felix Nawothnig 3ccc0a6265 Fix remaining thread tests on WinME. 2005-07-30 19:03:46 +00:00
Dmitry Timoshkov 5da1c0ada9 Implement EnumDateFormatsEx. 2005-07-28 10:47:53 +00:00
Dmitry Timoshkov 6f6d58b8b4 - Reimplement EnumTimeFormats, make it work for all available
locales.
- Add a test for EnumTimeFormats
2005-07-28 10:16:02 +00:00
Dmitry Timoshkov 8873d90f36 - Reimplement EnumDateFormats, make it work for all available
locales.
- Add a test for EnumDateFormats.
2005-07-27 15:15:02 +00:00
Paul Vriens 7b416af6ea Fix some tests for win9x and winME. 2005-07-27 10:51:45 +00:00
Steven Edwards 0cc138dc2e Move and forward lz32 functions to kernel32. 2005-07-25 11:08:30 +00:00
Felix Nawothnig 841b40896c Fix thread tests on WinME. 2005-07-25 11:07:54 +00:00
Vincent Béron 05b2c1cc81 Remove multiple declarations of the same function, keeping the public
one as reference.
2005-07-24 16:17:28 +00:00
Alexandre Julliard 8e21562903 Added small assembly wrapper to call entry points without having to
worry about their calling convention.
2005-07-22 19:50:13 +00:00
Francois Gouget bd19d67ad1 Assorted spelling fixes. 2005-07-22 09:06:03 +00:00
Felix Nawothnig f633a5ccf7 Convert long to short path in GetModuleFileName16. 2005-07-22 09:03:14 +00:00
Alexandre Julliard b676b62240 Register functions with no arguments should still be called as stdcall
because of the extra CONTEXT arg.
2005-07-21 11:09:26 +00:00
Dmitry Timoshkov e3d1a13b9c Add a test for handling overlapped buffers by WideCharToMultiByte. 2005-07-15 16:33:10 +00:00
Dmitry Timoshkov 1dc18952ae Use SIZE_T type for size variables in NTDLL when appropriate. 2005-07-15 10:01:30 +00:00
Alexandre Julliard 3be8cb8b02 Moved initialization of the default user process parameters to ntdll. 2005-07-14 12:33:30 +00:00
Alexandre Julliard 9ad5628639 Moved the server start time to the init_thread request and got rid of
the init_process request (based on a patch by Felix Nawothnig).
2005-07-14 10:32:46 +00:00
Alexandre Julliard 11ad6a0ac4 Return the startup info size in the init_thread request, and allocate
the process parameters structure in ntdll instead of kernel.
2005-07-13 19:43:35 +00:00
Alexandre Julliard 4391be583e Get rid of the boot_done request. 2005-07-13 14:20:13 +00:00
Alexandre Julliard 0424f38169 Already initialize the process in the first init_thread request
instead of waiting for the init_process request.
2005-07-13 12:12:43 +00:00
Alexandre Julliard 01caa5e645 Moved the fields that depends on startup info from the init_process
request to get_startup_info.
2005-07-12 20:27:09 +00:00
Alexandre Julliard 6aa0cc5e3c Load the HKEY_CURRENT_USER branch at server startup too. 2005-07-11 20:44:59 +00:00
Paul Vriens 0f394ae6dc Basic tests for LoadLibraryA and GetProcAddress. 2005-07-11 18:40:10 +00:00