Commit Graph

834 Commits

Author SHA1 Message Date
Patrik Stridvall
ede82e3055 Fixed some issues found by winapi_check. 2004-02-20 20:19:23 +00:00
Alexandre Julliard
4d984fd9c1 Create real file handles for VxDs instead of using the server device
object hack (partly based on a patch by Eric Pouech).
2004-02-20 05:22:20 +00:00
Alexandre Julliard
a21cf075a8 Added support for implementing VxDs as separate dlls and loading them
on demand.
Moved all the DeviceIoControl code into the respective VxD dlls.
2004-02-20 01:18:43 +00:00
Marcus Meissner
0462858eac Support emulation of the privileged mov dr7,eax instruction. 2004-02-17 22:46:06 +00:00
Alexandre Julliard
492ac292b9 Added support for building a dll from a .def file for cases where we
don't want to write a full .spec.
Renamed --spec option to --dll for consistency.
2004-02-17 20:36:16 +00:00
Alexandre Julliard
850ee4ba4e Authors: David Hammerton <david@transgaming.com>, Mike McCormack <mike@codeweavers.com>
Completed PeekNamedPipe implementation.
2004-02-12 20:03:53 +00:00
Alexandre Julliard
c1acebc305 Get rid of the flatthunk.h header. 2004-02-12 01:03:55 +00:00
Alexandre Julliard
e92b7eed7e Store the kernel32 module handle globally to avoid some
GetModuleHandle calls that can cause deadlocks with the loader
section.
Moved some 16-bit definitions out of kernel_private.h.
2004-02-12 00:00:55 +00:00
Dmitry Timoshkov
d40ec6f8a2 Fix a couple of copy/paste errors. 2004-02-10 20:07:56 +00:00
Francois Gouget
ad5ff7ceeb Assorted spelling and case fixes. 2004-02-09 22:07:42 +00:00
Dmitry Timoshkov
f323d5d31b Add a test case for Virtual* APIs, fix a few bugs discovered by it. 2004-02-09 20:58:16 +00:00
Dmitry Timoshkov
13081af50a Allow compilation with MSVC. 2004-02-09 20:48:12 +00:00
Alexandre Julliard
5fdc57ef5c Added memchrW and memrchrW to the exported Unicode functions. 2004-02-07 02:24:15 +00:00
Alexandre Julliard
31f3221535 Added missing parameter check in SetLocaleInfoA revealed by the
profile code changes.
2004-02-07 02:21:31 +00:00
Robert Shearman
e7ad75adf4 - Use Win32 instead of Unix file functions.
- Process files fully in Unicode.
- Add Unicode file detection.
2004-02-07 02:18:51 +00:00
Bill Medland
8d94d1925d Correct GetNumberFormat for negative numbers with e.g. 3 leading
digits.
2004-02-07 01:28:45 +00:00
Alexandre Julliard
f19c9e7cdd Get pointer to CreateFileW earlier on during startup.
Make sure we don't crash when loading a dll before the modref for the
main exe has been created.
2004-02-07 01:11:54 +00:00
Francois Gouget
afd3c257bd Add trailing '\n's to ok() calls. 2004-02-06 05:24:34 +00:00
Alexandre Julliard
163396b955 Revert the thread exit race fix for now, it doesn't work right on
pthreads.
2004-02-05 17:45:31 +00:00
Alexandre Julliard
4fac95df3d Fixed a couple of race conditions in the wine_pthread routines at
thread startup and exit.
2004-02-05 02:01:35 +00:00
Hans Leidekker
ff49652ef6 Improved error reporting.
Add some notification types and a test.
2004-02-05 01:45:58 +00:00
Mike McCormack
edf9eb6eea Fix incorrect GetLongPathName usage exposed by Eric's filename
patches.
2004-02-05 01:23:42 +00:00
Jon Griffiths
32376a5227 Add stubs for the Activation Context API (XP+). 2004-01-30 22:57:21 +00:00
Alexandre Julliard
23ff2d51a7 Make sure that there is extra information in the exception record
before accessing it in check_resource_write.
2004-01-28 21:40:01 +00:00
Francois Gouget
ce7c3b50ac Add trailing '\n's to ok() calls. 2004-01-27 20:13:03 +00:00
Dmitry Timoshkov
69c047a10c Use case insensitive comparison with pseudo console handle names in
OpenConsole.
2004-01-27 20:11:53 +00:00
Francois Gouget
6b6ed724ae Add missing '\n's to debug traces. 2004-01-27 00:01:43 +00:00
Francois Gouget
e18aa3f614 Add trailing '\n's to ok() calls. 2004-01-26 20:23:25 +00:00
Francois Gouget
47e116225a Add trailing '\n's to ok() calls. 2004-01-23 20:50:35 +00:00
Francois Gouget
7494b5b980 Add trailing '\n's to ok() calls.
Check whether _MSC_VER is defined.
2004-01-23 02:11:12 +00:00
Francois Gouget
f229c911b5 Add trailing '\n's to ok() calls. 2004-01-23 02:10:33 +00:00
Ge van Geldorp
399901e054 Rename LARGE_INTEGER and ULARGE_INTEGER members "s" to "u" to conform
with PSDK.
2004-01-23 01:51:33 +00:00
Rein Klazes
f20ce3b816 Fix MultiByteToWideChar and WideCharToMultiByte when called with code
page CP_SYMBOL.
Remove the symbol font from the code page table, so it is not reported
as a valid/supported/installed code page.
Remove workarounds for the badly behaved MultiByteToWideChar and co.
in a few places.
2004-01-20 22:39:06 +00:00
Francois Gouget
3ada284495 Avoid duplicate '=C:' entries in the child process environment. 2004-01-20 21:51:27 +00:00
Francois Gouget
52bf6c2bb1 Fix a file descriptor leak in create_process(). 2004-01-20 02:11:06 +00:00
Eric Pouech
6c8ee62340 - RtlGetFullPathName_U: rewritten so that the source & destination
buffer can be the same
- GetFullPathName[AW]: now call RtlGetFullPathName_U
- GetShortPathNameW: fixed regression introduced in last patch
2004-01-20 01:40:23 +00:00
Eric Pouech
210e1abb35 Added support for Unix code page in NTDLL. 2004-01-18 22:11:52 +00:00
Francois Gouget
17112eaa4d Assorted spelling fixes. 2004-01-16 21:26:08 +00:00
Francois Gouget
1614f91767 Return HFILE_ERROR instead of -1 in _lread. 2004-01-16 21:23:32 +00:00
Mike Hearn
517248d7bc - Ensure we correctly add a backslash like Windows 98/XP do.
- Generate filenames that look like Windows does (no left digit
  padding).
2004-01-16 04:49:13 +00:00
Vincent Béron
14263ab0c4 Move the implementation of GetDefaultCommConfig from A to W.
Get rid of a W->A cross call at the same time.
2004-01-16 02:21:01 +00:00
Vincent Béron
b370abab45 Unicodify some comm functions.
Get rid of some W->A cross calls along the way.
2004-01-16 02:14:50 +00:00
Mike McCormack
41e25208b2 Preserve trailing backslashes in GetFullPathName. 2004-01-15 01:48:44 +00:00
Alexandre Julliard
d03300eca3 Define INADDR_NONE if needed (reported by Robert Lunnon). 2004-01-15 00:25:41 +00:00
Eric Pouech
9ccb73a8d7 Reimplemented Get{Short|Long}PathName and updated the regression
tests.
2004-01-15 00:20:46 +00:00
Eric Pouech
768008fa20 - got rid of FILE_Dup2 export from kernel32
- move all dos handle related code into dlls/kernel32
2004-01-14 04:34:20 +00:00
Eric Pouech
d6771b1333 Implemented Toolhelp32ReadProcessMemory. 2004-01-12 21:05:53 +00:00
Alexandre Julliard
e8283089cb Get rid of no longer needed WINE_PACKED define. 2004-01-09 22:18:49 +00:00
Mike McCormack
f7b47f7a5c Regression test for files with zero length. 2004-01-09 00:34:37 +00:00
Alexandre Julliard
3604824262 If supported by the linker, prevent the ELF loader from calling the
dll constructors at load time and call them from the dll entry point
instead.
2004-01-08 03:36:53 +00:00
Mike Hearn
925a2f936e Always print a message for generic stubs. 2004-01-08 03:28:42 +00:00
Alexandre Julliard
af542075e7 Don't use constructors for ntdll and kernel32 initialization. 2004-01-07 04:50:11 +00:00
Francois Gouget
640cc3f3e1 Assorted spelling fixes. 2004-01-06 22:08:33 +00:00
Eric Pouech
5bf3a2669b Made wine_get_unix_file_name take a Unicode string pointer. 2004-01-05 23:42:09 +00:00
Alexandre Julliard
6db772cd2e Always try to load the 32-bit owner dll instead of directly loading
the .so file for 16-bit builtins. Make the load order for 16-bit dlls
always match the load order of their 32-bit owner (if any).
2004-01-03 01:18:55 +00:00
Mike Hearn
43cb03be3a Implemented RegFlushKey and NtFlushKey. 2004-01-03 00:38:30 +00:00
Juan Lang
ae459e133d Properly L2-encode the NetBIOS scope ID in DeviceIo_VNB, so
ipconfig.exe and winipcfg.exe display it.
2004-01-02 03:55:35 +00:00
Marcus Meissner
492451464a Removed too strict header check to enable execution of handcoded PE
exes.
2003-12-31 00:12:31 +00:00
Hans Leidekker
513670551b MoveFile returns ERROR_ALREADY_EXISTS, not ERROR_FILE_EXISTS. 2003-12-15 20:15:20 +00:00
Hans Leidekker
9f12d22657 [Global|Local]ReAlloc don't fail with size 0.
Fixed typos.
2003-12-15 19:51:17 +00:00
Marcus Meissner
20c338acd2 Explicitly clear vm86 flag in DIOCRegs_2_CONTEXT. 2003-12-15 19:50:22 +00:00
Alexandre Julliard
8543a5db9a Added exception handlers in FindResourceExA/W (based on a patch by
Richard Cohen).
2003-12-13 01:36:14 +00:00
Alexandre Julliard
65ff814617 Return an error in wine_pthread_mutex_unlock if we don't own the
critical section, this should avoid trouble caused by a locking bug
inside Xlib.
2003-12-12 06:19:25 +00:00
Vik Kumar
755762426c Added eucJP charset. 2003-12-12 05:59:54 +00:00
Eric Pouech
1da37e6ac4 Moved all remaining console related code to dlls/kernel directory. 2003-12-12 04:10:52 +00:00
Frank
39a16e8297 Fixed size check in GetCommConfig(). 2003-12-11 04:25:00 +00:00
Hans Leidekker
7499242fd3 Include tests for MoveFile[W|A]. 2003-12-08 22:21:20 +00:00
Hans Leidekker
c9d42291e8 Deal with kernels that don't have IsValidLanguageGroup.
Deal with non-implemented FoldString[A|W].
2003-12-08 22:20:44 +00:00
Hans Leidekker
2402f21b41 Check for ERROR_CALL_NOT_IMPLEMENTED error from RemoveDirectoryW. 2003-12-08 22:20:25 +00:00
Dimitrie O. Paun
2eaefbd1a4 Move content of global.h into the appropriate private headers. 2003-12-08 21:58:55 +00:00
Dimitrie O. Paun
4c90416d40 More tests for {Local,Global}{,Re}Alloc() calls.
Cleanup of the Heap*() tests.
2003-12-04 21:52:52 +00:00
Juan Lang
1e4de4c420 Partially implement DeviceIoControl for VDHCP, VNETBIOS, and VNB.
Gets rid of FIXMEs for ipconfig.exe and winipcfg.exe.
2003-12-04 21:05:13 +00:00
Marcus Meissner
8b150d6e5d On i686, report processor level 6. 2003-12-04 01:41:53 +00:00
Alexandre Julliard
e9badbfb86 Converted locale setup to Unicode so that we don't use code pages
before they are initialized. Improved error reporting a bit.
2003-12-03 22:32:11 +00:00
Alexandre Julliard
ccff458669 Revert change for handling user overrides as numbers and reimplement
it differently.
2003-12-03 20:28:10 +00:00
Alexandre Julliard
04ecca54a1 Use wine_server_release_fd() instead of close() everywhere we use
wine_server_handle_to_fd().
A few minor winsock cleanups.
2003-12-02 04:19:56 +00:00
Jon Griffiths
d9339f83ec Fail GetCalendarInfoA for Unicode-only locales. 2003-12-01 22:47:28 +00:00
Jon Griffiths
87ae5ba84e Allow user overridden locale data to be retrieved as numbers. 2003-12-01 22:46:19 +00:00
Alexandre Julliard
402b79a1e8 Porting fixes. 2003-11-27 00:59:36 +00:00
Alexandre Julliard
77b8c0a42f NE_LoadBuiltinModule: return error 21 if the module we loaded was a
32-bit builtin. This should help WinExec16 to do the right thing.
2003-11-26 04:13:53 +00:00
Alexandre Julliard
9e73f55af3 Store the last error code at the TEB offset used by NT instead of the
Win9x one.
2003-11-25 01:53:23 +00:00
Eric Pouech
ff0365290b Got rid of DRIVE_OpenDevice, and replaced it with Win32 equivalents. 2003-11-25 01:51:07 +00:00
Alexandre Julliard
16b4411669 Removed MODULE_GetLoadOrderA. 2003-11-25 01:03:04 +00:00
Dimitrie O. Paun
c762f5d7af RtlHeapReAllocate() should not allocate memory.
Add small test to make sure it doesn't return.
Don't import ntdll for tests, we need to load it dynamically.
2003-11-25 01:02:02 +00:00
Alexandre Julliard
436eda3071 Removed task.h. 2003-11-25 00:42:26 +00:00
Jon Griffiths
eff671ef0d Documentation updates 2003-11-25 00:08:46 +00:00
Alexandre Julliard
c6d44be3e5 Create a huge array in bss to reserve the memory area we need for PE
binaries, to prevent exec shield from mapping system libraries there.
2003-11-22 00:08:26 +00:00
Dmitry Timoshkov
33f9dcb1f9 Move CompareString implementation to libwine_unicode, add a bunch of
CompareString tests.
2003-11-22 00:00:53 +00:00
Hans Leidekker
af7e65b46d Account for the fact that the temporary directory may expand to a long
name.
2003-11-18 20:39:34 +00:00
Francois Gouget
6768ecb6c1 Scale the buffer sizes with MAX_LISTED_ENV_VAR.
Add a note about the limited buffer size used by the *Profile functions.
Fix a couple of spelling errors.
2003-11-18 19:38:51 +00:00
Alexandre Julliard
a7ce2abc9d Removed include/selectors.h. 2003-11-18 00:16:25 +00:00
Alexandre Julliard
746d900b04 Force minimum stack size to 1Mb for Xlib. 2003-11-18 00:14:17 +00:00
Alexandre Julliard
204847e8f6 Use the wine_ldt_* functions directly in winedos instead of calling
SELECTOR_AllocBlock.
2003-11-18 00:06:15 +00:00
Alexandre Julliard
d868549754 Moved toolhelp.h to dlls/kernel. 2003-11-17 20:49:45 +00:00
Alexandre Julliard
f9be2f3d21 Removed some unnecessary includes. 2003-11-17 20:31:29 +00:00
Alexandre Julliard
464cc10419 Fixed regression in loading of builtin apps from the system dir when
the native doesn't exist.
2003-11-17 20:18:19 +00:00
Alexandre Julliard
d3fb25cd0f Moved a few definitions used in only one source file out of module.h. 2003-11-17 20:16:38 +00:00
Alexandre Julliard
8fb98a41e0 Added wine_ldt_is_system() to replace the IS_SELECTOR_SYSTEM macro,
and stop exporting the WINE_LDT_FIRST_ENTRY constant.
2003-11-17 20:12:56 +00:00
Alexandre Julliard
e983652363 Moved a number of DOS definitions out of the global headers and into
winedos private files. Removed the msdos.h header.
2003-11-15 00:13:20 +00:00
Alexandre Julliard
4044372596 Moved winedos loading functionality to dlls/kernel/instr.c and get rid
of msdos/dpmi.c.
2003-11-14 21:08:39 +00:00