Commit Graph

34 Commits

Author SHA1 Message Date
Detlef Riekenberg f64f9ef5fa kernel: Update WARN/ERR and documentation for GlobalLock/GlobalUnlock. 2006-04-14 19:42:53 +02:00
Detlef Riekenberg 839f00a967 kernel: Fix handling of invalid parameter in GlobalSize(). 2006-03-31 17:38:49 +02:00
Detlef Riekenberg 464b35522b kernel32: Display the parameter that caused a page fault in GlobalFree(). 2006-03-30 12:45:22 +02:00
Detlef Riekenberg 1a81f4ff8a kernel: Fix handling of invalid parameter in GlobalFlags(). 2006-03-30 12:45:00 +02:00
Detlef Riekenberg dcbfa1179d kernel: Avoid heap corruption on invalid parameter in GlobalFree(). 2006-03-20 12:26:53 +01:00
Francois Gouget 2f29c779d4 kernel: Protect sys/resource.h include. 2006-03-03 13:17:14 +01:00
Robert Millan 8800352477 Enable for GNU/kFreeBSD the same kernel-specific interface/parameter
that is used with FreeBSD.
2006-02-05 13:06:50 +01:00
Robert Shearman 9cc41d278f kernel32: Fix GlobalReAlloc for size = 0.
GlobalReAlloc should return NULL if the requested size is 0, the block
is moveable and it is locked, but otherwise it should return the
original memory block.
2006-01-12 11:55:25 +01:00
Robert Shearman cb7aa0306e kernel32: Return an error when unlocking a global with a zero lock count.
Rename GLOBAL_LOCK_MAX to the public GMEM_LOCKCOUNT.
2006-01-10 19:59:15 +01:00
Mike McCormack 3066397bab kernel: Trying to lock an empty global memory block gives an ERROR_DISCARDED. 2006-01-09 17:16:32 +01:00
Alexandre Julliard ae964ac801 Take advantage of the __EXCEPT_PAGE_FAULT macro. 2005-12-16 17:17:57 +01:00
Alexandre Julliard db7920bb44 We no longer need to handle EXCEPTION_PRIV_INSTRUCTION on page faults. 2005-12-16 16:37:12 +01:00
Vincent Béron 182cabea90 Protect sys/stat.h with a conditional. 2005-11-11 10:53:30 +00:00
Robert Lunnon 53b4c0f646 Implement GlobalMemoryStatusEx for Solaris. 2005-11-08 16:10:01 +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
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
Mike McCormack 405ac7a80c - don't include winreg.h
- include kernel_private.h to get declaration for convert_old_config()
2005-06-20 10:40:37 +00:00
Alexandre Julliard bd000a0203 Removed some unnecessary inclusions of thread.h 2005-06-06 20:13:08 +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
Jakob Eriksson 9ed61de9a2 Get rid of HeapAlloc casts. 2005-03-24 21:01:35 +00:00
Paul Vriens 78f90d9026 Initialize dwOSVersionInfoSize in GlobalMemoryStatus. 2004-12-27 17:06:18 +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
Robert Reif 778168c316 Fix BSD build. 2004-08-13 19:47:11 +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 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
Eric Pouech 62a860988c Const correctness, pointer cast correctness, removed extraneous ';'. 2004-06-14 17:04:34 +00:00
Alexandre Julliard 7109423ec0 Allocate the shared heap inside the Win9x shared memory area. 2004-05-25 05:13:44 +00:00
Alexandre Julliard c749433e26 Create the system heap event before the shared mapping to avoid a race
condition.
2004-04-29 20:02:01 +00:00
Alexandre Julliard e8283089cb Get rid of no longer needed WINE_PACKED define. 2004-01-09 22:18:49 +00:00
Alexandre Julliard 402b79a1e8 Porting fixes. 2003-11-27 00:59:36 +00:00
Alexandre Julliard b81d9e7cf4 Link all remaining files that contain kernel APIs into kernel32.dll
instead of ntdll.dll. Removed a number of no longer needed files.
2003-10-08 03:57:02 +00:00
Alexandre Julliard ec39821750 Moved 16-bit global heap, DOS memory and selector functions to
dlls/kernel.
2003-09-18 20:58:41 +00:00
Alexandre Julliard 0f170015f1 Moved most 32-bit heap functions to dlls/kernel. 2003-09-16 20:34:14 +00:00