Commit Graph

444 Commits

Author SHA1 Message Date
Rob Shearman
8dcde49a53 winedos: The calling convention should come after the return type in the declaration of VGA_DoShowMouse for portability. 2008-04-11 11:12:31 +02:00
Francois Gouget
8a18e0e43a Assorted spelling fixes. 2008-04-07 13:36:18 +02:00
Andrew Talbot
2d08f90d76 winedos: Assign to struct instead of using memcpy. 2008-03-22 13:21:00 +01:00
Rob Shearman
48000893f9 makefiles: Simplify the use of the IMPORTLIB variable in the DLL makefiles.
Only specify the root to keep platform-specifics out of the individual 
DLL makefiles.
2008-03-04 20:55:01 +01:00
Alexandre Julliard
5625c6079e Get rid of the global thread.h header. 2008-03-01 11:57:00 +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
Andrew Talbot
84b9356618 winedos: Remove unneeded casts. 2008-01-25 12:08:45 +01:00
Austin English
65569206b2 Spelling fixes. 2008-01-10 12:16:31 +01:00
Alexandre Julliard
4d53055f62 winedos: Don't emulate in 32-bit mode interrupts that don't have a specific handler. 2007-12-31 17:25:05 +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
e2a366ce33 kernel32: Forward interrupts in 32-bit code to winedos too. 2007-12-20 12:18:19 +01:00
Alexandre Julliard
ad9396302d Removed some unneeded imports. 2007-12-06 21:24:24 +01:00
Gerald Pfeifer
6b7957f4db winedos: Use DWORD instead of long for return values of SetFilePointer.
Adjust type of loop variable in INT21_Ioctl_Char().
2007-11-26 13:57:20 +01:00
Francois Gouget
c4b1195c0c Assorted spelling fixes. 2007-10-23 18:20:27 +02:00
Steven Edwards
c9a0da51a5 Remove more unneeded wine 16bit header usage. 2007-08-30 12:31:01 +02:00
Francois Gouget
2993785f3a Assorted non-ANSI function declaration fixes (missing void). 2007-08-30 11:57:18 +02:00
Mikołaj Zalewski
570eb6093e winedos: Make UMB executable. 2007-08-14 20:29:21 +02:00
Francois Gouget
ebadbd4bd5 Assorted spelling fixes. 2007-08-09 14:13:07 +02:00
Michael Stefaniuc
b4475b257e winedos: Remove superfluous casts of void pointers to other pointer types. 2007-06-27 12:53:45 +02:00
Alexandre Julliard
b8d1560ac3 winedos: Fix the device open code for the new NtCreateFile syntax for Unix files. 2007-06-18 12:53:40 +02:00
Francois Gouget
96c337f0a1 Assorted spelling fixes. 2007-06-07 19:24:32 +02:00
Michael Stefaniuc
5c06fb0bb1 winedos: Fix printf format warnings introduced by the TEB change in thread.h. 2007-06-06 12:10:18 +02:00
Alexandre Julliard
7373ced544 winedos: Merge a number of tiny source files into interrupts.c. 2007-05-30 13:12:09 +02:00
Dmitry Timoshkov
3c9e7a7f33 wine: Switch to using 'long' for INT_PTR type for 64-bit compatibility. 2007-05-25 20:37:56 +02:00
Michael Stefaniuc
9a5c5178c2 winedos: Check a file handle against INVALID_HANDLE_VALUE, not 0. 2007-03-09 11:36:43 +01:00
Tomas Carnecky
9b4f99782e dsound: Update prototypes for IDirectSoundBuffer::Lock/Unlock. 2007-03-08 21:30:54 +01:00
Andrew Talbot
bf98c9d182 winedos: Declare some items static. 2007-02-05 17:11:51 +01:00
Francois Gouget
367f91fb5c Assorted spelling fixes. 2006-12-14 20:25:05 +01:00
Dmitry Timoshkov
c9a57ee196 winedos: Make some data const. 2006-11-29 12:44:37 +01:00
Alexandre Julliard
d2abcecd94 winedos: Use NT instead of Unix calls to identify DOS device pseudo-files. 2006-10-31 20:24:14 +01:00
Michael Stefaniuc
56b87f3a0f janitorial: Remove redundant NULL checks before calling HeapFree wrappers. 2006-10-16 10:52:48 +02:00
Michael Stefaniuc
db4eaf5e6f winedos: Win64 printf format warning fixes. 2006-10-03 15:55:37 +02:00
Michael Stefaniuc
85ce5117c5 Add a WINE_NO_LONG_INT define to many makefiles to ease the transition of DWORD/LONG/ULONG from long to int. 2006-09-29 16:08:30 +02:00
Alexandre Julliard
32ab895e46 makefiles: Generate the dependencies line to avoid some code duplication. 2006-09-14 09:38:16 +02:00
Dan Kegel
91f9746d2f winedos: Limit reported disk space to 1GB. 2006-07-24 12:57:34 +02:00
Michael Stefaniuc
932a2a0d54 Fix swapped 2nd and 3rd argument passed to memset. 2006-07-14 12:38:36 +02:00
Alexandre Julliard
eb8a40c368 libs: Merged libwine_unicode into libwine.
Most dlls use libwine_unicode at this point, so there's nothing to
gain by having two separate libraries.
2006-07-11 19:33:22 +02:00
Alexandre Julliard
5258e061dc make_dlls: Ignore generated import libraries from the top-level .gitignore. 2006-07-10 20:55:58 +02:00
Alexandre Julliard
cc2b3b48e6 Take advantage of the recursive nature of .gitignore for Makefile entries.
Prefix other entries with '/' to make them non-recursive.
2006-07-10 20:47:54 +02:00
Jonathan Ernst
360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Petr Tesarik
31b0a4edf6 winedos: Implement INT2F/AX=1501 (get drive device list). 2006-04-12 11:18:43 +02:00
Petr Tesarik
9f9ac54a19 winedos: Implement true CDROM DOS device driver. 2006-04-11 11:40:14 +02:00
Petr Tesarik
d72178a1be winedos: Move all device driver initialization code to a newly written
function DOSDEV_SetupDevice().
2006-04-11 11:39:24 +02:00
Petr Tesarik
07d77c28fd winedos: Move most of MSCDEX stuff into a separate function. 2006-04-11 11:38:15 +02:00
Petr Tesarik
7e4ad8e6a7 winedos: Move some declarations to the header file. 2006-04-11 11:37:58 +02:00
Petr Tesarik
404eadc775 winedos: Clear TF bit before passing control to a VM86 interrupt handler. 2006-03-27 12:14:13 +02:00
Marco Timpano
8d845e3a1a winedos: Fixed a couple of typos in ppdev. 2006-02-22 12:03:07 +01:00
Alexandre Julliard
b7b7f2b679 Avoid importing _strlwr/_strupr from ntdll. 2006-01-24 12:24:05 +01:00
Rein Klazes
43694d9582 winedos: Open files with write access on read only media.
If the CreateFile in INT21_CreateFile fails with ERROR_WRITE_PROTECT,
retry without write access.
2006-01-10 12:12:46 +01:00
Alexandre Julliard
59797f292e Pass specific access rights to wine_server_handle_to_fd. 2005-12-12 17:15:26 +01:00
Eric Pouech
4e7b8f4a7b kernel32: Get rid of DOSMEM_AllocSelector. 2005-12-12 13:02:35 +01:00
Markus Amsler
19d60d3c5a winedos: Implement MCB. 2005-12-12 11:50:01 +01:00
Ge van Geldorp
1a1583a364 Match PSDK STATUS_* definitions. 2005-11-28 17:32:54 +01:00
Alexandre Julliard
0ec7e1a591 Renamed all .cvsignore files to .gitignore. 2005-11-26 13:10:33 +01:00
Francois Gouget
6d442aeb34 Assorted spelling fixes. 2005-11-23 20:14:43 +01:00
Francois Gouget
0edbaf7e80 Remove spaces before '\n' in traces. 2005-11-10 12:14:56 +00:00
Eric Pouech
9577e5e296 ioctl 440F only returns non mapped drives (for now). 2005-10-17 08:54:28 +00:00
Dmitry Timoshkov
de662eeecc Convert a WARN to a FIXME to make it visible to a user, replace an ERR
by a FIXME as it's more appropriate.
2005-10-03 10:15:32 +00:00
Gerald Pfeifer
7714af934d We only need the relay debug channel on MZ_SUPPORTED platforms. 2005-09-30 10:34:32 +00:00
Alexandre Julliard
7e22be4d84 We are no longer generating .dbg.c files. 2005-09-29 10:35:58 +00:00
Alexandre Julliard
9f1c6de1ef We are no longer generating .spec.c files. 2005-09-21 14:42:52 +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
Christian Lupien
112115bd22 Avoid overflow in the read file limit check. 2005-09-18 11:11:36 +00:00
Alexandre Julliard
d3dba4e56c Fixed gcc 4.0 warnings. 2005-09-12 10:52:38 +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
93ab695a5c Fix gcc 4.0 warnings. 2005-08-26 08:53:31 +00:00
Alexandre Julliard
49b7fdcfc0 Removed the broken mmap64 configure check, and moved the
_FILE_OFFSET_BITS define to wine/port.h. Made sure that all files that
need the define include it.
2005-08-03 21:25:10 +00:00
Stefan Huehner
17ed5537e7 Fix some more -Wmissing-declarations warnings. 2005-07-05 11:05:50 +00:00
Alexandre Julliard
ab3d0794ae Moved port configuration to HKCU\Software\Wine\VDM\ppdev. 2005-06-27 18:48:24 +00:00
Alexandre Julliard
cc7d74fdc7 Moved I/O port configuration to HKCU\Software\Wine\VDM\Ports. 2005-06-27 18:47:53 +00:00
Stefan Huehner
863a4b1488 Fix some more -Wstrict-prototypes warnings. 2005-06-21 20:53:13 +00:00
Mike McCormack
5b2d5fd758 Use HANDLE instead of HKEY in the NT API. 2005-06-17 13:58:33 +00:00
Stefan Huehner
03cc8c4181 Remove some -Wstrict-prototypes warnings. 2005-06-17 10:11:37 +00:00
Alexandre Julliard
c913efa244 Hardcode the location of config.sys, no need for a config parameter
for that.
2005-06-14 11:48:57 +00:00
Alexandre Julliard
2e4bca9db5 Added magic comments to all Wine-specific registry accesses to make
them easier to grep.
2005-06-13 18:56:00 +00:00
Alexandre Julliard
f231ef560e Removed references to obsolete configuration entries. 2005-06-13 18:48:09 +00:00
Alexandre Julliard
bd000a0203 Removed some unnecessary inclusions of thread.h 2005-06-06 20:13:08 +00:00
Alexandre Julliard
a46003c436 Revert previous patch, we still need the winedos import lib for now. 2005-05-19 21:18:53 +00:00
Alexandre Julliard
8aa102baef We no longer need a winedos import library. 2005-05-19 14:25:34 +00:00
Alexandre Julliard
84259840eb Refuse to load if 16-bit support is missing. 2005-05-19 14:21:02 +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
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
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
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
Rein Klazes
1e43a90727 - In MZ_DoLoadImage if an environment segment is specified in the
parameter block, use that and do not inherit from the calling
  process.
- Call FreeEnvironmentStrings when the strings are no longer used.
2005-05-05 10:32:54 +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
Peter Berg Larsen
6aefbc0934 Strncpy elimination. 2005-04-18 15:36:20 +00:00
Peter Berg Larsen
6e3bcb5a54 Replace strncpy with memcpy or lstrcpyn. 2005-04-18 10:30:55 +00:00
Francois Gouget
fbb3343547 Assorted spelling fixes. 2005-03-02 13:53:50 +00:00
Francois Gouget
4d801b66e6 Assorted spelling fixes. 2005-02-10 19:19:35 +00:00
Rein Klazes
b08f958157 In int21_ioctl - get device data-, set the "is console" bits if the
device handle is a tty or a proper console io handle.
2005-01-14 16:21:07 +00:00
Mike McCormack
4a0f999859 Use CreateEventW in preference to CreateEventA for unnamed events. 2005-01-07 15:40:09 +00:00
Diego Pettenò
e07a95688d Get rid of DPRINTF. 2005-01-03 20:04:54 +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
Eric Pouech
4056d7ef8c Fixed some errors in function prototypes. 2004-12-13 21:19:01 +00:00
Eric Pouech
eefb72c826 Fixed copy&paste error. 2004-12-13 12:04:14 +00:00
Eric Pouech
0a258964c2 Const correctness fixes. 2004-11-30 21:38:57 +00:00