Commit Graph

151 Commits

Author SHA1 Message Date
Francois Gouget 61aac4eaa1 Fix some typos. 2003-06-04 20:29:05 +00:00
Dmitry Timoshkov ce533003d8 Make the Global* memory API functions thread safe. 2003-05-20 19:18:57 +00:00
Dmitry Timoshkov ba2ac1337d Protect GlobalLock from bad pointers. 2003-05-11 02:54:53 +00:00
Andreas Mohr 114b667f41 Some spelling and formatting fixes. 2003-04-02 01:23:43 +00:00
Yorick Hardy a0879217f4 Added the sysctl calls for NetBSD to determine the physical memory
available.
2003-03-28 00:29:00 +00:00
Mike Hearn 7aa04f2744 Implemented GlobalMemoryStatusEx(). 2003-02-26 04:35:36 +00:00
Jukka Heinonen 54f377c6c5 Move resize memory block to winedos and make it resize in place and
work correctly even when trying to allocate too much memory.
2003-02-19 22:11:04 +00:00
Michael Stefaniuc cd0219e941 The Minolta DiMAGE Image Viewer relies on Global{,Re}Alloc called with
the GMEM_MOVEABLE flag set, to allocate the exact specified size and
no byte more when size is a multiple of 8. To achieve this align the
storage needed for the HGLOBAL in the heap to 8byte boundary.
2003-01-16 00:21:04 +00:00
Francois Gouget 9b0b1e078a Remove (POINTER)NULL casts. 2003-01-14 23:43:41 +00:00
Eric Pouech 0fcada9fa7 Removed unused #include of module.h. 2003-01-02 17:59:47 +00:00
Dimitrie O. Paun 737d4be892 Move excpt.h out of include/msvcrt/ as it does not conflict with any
standard Unix header.
2002-12-12 23:34:01 +00:00
Andrew John Hughes ed800c69c8 Build ntdll with -DSTRICT. 2002-11-21 03:45:01 +00:00
Francois Gouget 1f0e33cb13 Cap the reported physical memory to 2GB to prevent applications
(e.g. QuickTime 6) from crashing.
2002-11-13 19:48:07 +00:00
Patrik Stridvall b5bb32c09a Fixed some issues found by winapi_check. 2002-09-24 18:29:39 +00:00
Dmitry Timoshkov 472d016859 Correct SIZE_T size according to MS SDK.
Change some types to SIZE_T according to MS SDK definitions.
2002-09-21 01:21:00 +00:00
Patrik Stridvall d016f819f1 Added include protection for unistd.h and sys/time.h. 2002-08-17 00:43:16 +00:00
Bang Jun-Young 17eb169922 Make compile on NetBSD. 2002-07-25 23:57:34 +00:00
Gregg Mattinson 7c4cb515b6 Cast void* to char* for pointer arithmetic. 2002-07-03 21:10:43 +00:00
Vincent Béron 9a62491660 Removed trailing whitespace. 2002-05-31 23:06:46 +00:00
Olivier Houchard f41ecf3782 Support for getting memory size on FreeBSD. 2002-05-07 01:50:02 +00:00
Andreas Mohr cacbe216eb Add return traces to GlobalMemoryStatus, GetSystemInfo and fixme in
GetSystemInfo.
2002-04-02 19:40:49 +00:00
Alexandre Julliard 0799c1a780 Added LGPL standard comment, and copyright notices where necessary.
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00
Peter Hunnisett 73ab649ced New file msvcrt/excpt.h. Move some stuff out of winnt.h into it. 2002-02-25 20:10:35 +00:00
Uwe Bonnes 9788815b9c GlobalReAlloc16: If heap has GlobalPageLock set, try only with
HEAP_REALLOC_IN_PLACE_ONLY flag set.
2001-12-20 00:00:25 +00:00
Andreas Mohr 55a14edd17 Use exception handler for GlobalUnlock, GlobalFree. 2001-11-20 20:26:35 +00:00
François Gouget 1425941e29 Fix the #include order for config.h.
Add #include "config.h" directives where needed.
2001-11-06 20:57:11 +00:00
Francois Gouget 386cf6e342 When including 'wine/port.h', include it first.
Remove redundant 'config.h' includes.
2001-10-14 16:25:47 +00:00
Alexandre Julliard 1922c72b8a Removed unnecessary inclusion of heap.h. 2001-07-25 00:43:29 +00:00
Patrik Stridvall 044855c6ec Documentation fixes. 2001-07-11 18:56:41 +00:00
Patrik Stridvall 01d5e5b071 Documentation fixes. 2001-07-02 19:59:40 +00:00
Patrik Stridvall 3ca9823941 Documentation ordinal fixes. 2001-06-20 23:03:14 +00:00
Patrik Stridvall dae8de69e2 Documentation ordinal fixes (using winapi_fixup). 2001-06-13 20:13:18 +00:00
Francois Gouget e76218dd61 Add '\n' at the end of traces. 2001-05-09 17:31:31 +00:00
Alexandre Julliard 61d32b4e0d Allocations do not need to be on the system heap. 2001-02-23 01:35:36 +00:00
Mike McCormack c56a79ad06 Some borken memory monitoring programs divide by dwTotalPageFile,
which probably isn't zero on windows.
2001-01-04 19:52:51 +00:00
Alexandre Julliard 5801723b50 Replaced WIN16_GlobalLock16 by "official" function K32WOWGlobalLock16. 2000-12-22 01:09:26 +00:00
Dmitry Timoshkov f8b96e272a Make new edit control allocate its buffers with granularity 32 byte.
Ensure that all copied strings are 0 terminated.
2000-12-20 18:39:14 +00:00
Alexandre Julliard de25e6f07c Set last error in GlobalUnlock. 2000-12-19 23:38:13 +00:00
Alexandre Julliard 982a223f36 Replaced PTR_SEG_TO_LIN macro by exported MapSL function.
Fixed a few ptr/segptr mismatches.
Moved CONV_RECT/POINT macros to wingdi16.h.
2000-12-13 20:20:09 +00:00
Dmitry Timoshkov c34fe084d5 GlobalAlloc as GlobalAlloc16 should round size to 32.
Call SetLastError in GlobalLock.
2000-11-27 01:33:25 +00:00
Alexandre Julliard 914406f854 Moved LDT handling to libwine.so. Changed the interface to use the
exported LDT_ENTRY structure.
2000-11-14 01:54:49 +00:00
Alexandre Julliard 8c540c657e Replaced a few internal functions by exported ones. 2000-11-13 04:16:05 +00:00
Francois Gouget ea5924c040 Return the correct value for dwTotalVirtual.
Return a more plausible value for dwAvailVirtual.
2000-10-28 00:34:29 +00:00
Ulrich Weigand 2e7008cdb0 Allow freeing locked global memory handles. 2000-10-19 20:24:25 +00:00
Lawson Whitney 969515d07d Protect GlobalHandle() against bad parameters. 2000-10-02 22:27:37 +00:00
Andreas Mohr d23f506a94 Introduced a new arena flag called GA_DOSMEM to distinguish between
DOSMEM and normal "windows" global mem.
2000-10-02 22:16:21 +00:00
Alexandre Julliard 4fef2f1917 Removed obsolete SHMDATA parameter in GLOBAL_CreateBlock. 2000-08-09 22:27:11 +00:00
Ove Kaaven 7b49914afc Removed the hModule parameter from various DOSMEM routines, the DOSMEM
routines now always use the current memory space.
2000-07-28 22:23:59 +00:00
Eric Pouech 3bcfb90188 Fixed some OOM conditions in GlobalAlloc. 2000-06-24 12:51:24 +00:00
Huw D M Davies c43fdb75b3 GlobalReAlloc returns 0 on failure. 2000-04-13 15:57:06 +00:00