Michael Stefaniuc
fe70e0e58f
kernel32: Use the ARRAY_SIZE() macro.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 10:15:59 +02:00
Jacek Caban
6a7363b694
kernel32: Call registry functions with full key path.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-19 23:56:39 +09:00
André Hentschel
bbd71d6b72
kernel32: Fix out of bounds access in DnsHostnameToComputerName[AW].
2014-01-30 10:33:28 +01:00
Marcus Meissner
7cd22f7037
kernel32: Added missing break (Coverity).
2011-03-28 17:12:26 +02:00
Alexandre Goujon
49c5bd0365
kernel32: Fix GetComputerName errors.
2010-08-23 11:58:42 +02:00
André Hentschel
c85357a230
kernel32: Update a warning.
2010-06-25 10:25:02 +02:00
Paul Chitescu
590cc1ad55
kernel32: Reduce registry access to KEY_READ wherever possible.
2009-11-30 16:33:54 +01:00
Vitaly Lipatov
aa5358fdae
kernel32: gethostname returns string in CP_UNIXCP encoding.
2008-12-01 14:01:10 +01:00
Andrew Talbot
59651999b3
kernel32: Exclude unused headers.
2007-05-07 20:34:41 +02:00
Andrew Talbot
503b338e88
kernel32: Replace inline static with static inline.
2007-03-17 20:03:39 +01:00
Alasdair Sinclair
81c922398e
kernel32: Fix GetComputerNameA to not count trailing NULL, with test.
2007-03-09 13:55:43 +01:00
Rob Shearman
e716c5b1ef
kernel32: Fix crash in dns_gethostbyname.
2007-02-23 11:18:40 +01:00
Rob Shearman
a5317eb846
kernel32: Fix an off-by-one error in GetComputerNameExA/W.
...
The dns_* functions expect the input buffer to have space for size
characters plus the nul terminating character.
2007-02-21 19:50:57 +01:00
Rob Shearman
fc5b795f7c
kernel32: Fix the GetComputerName* functions to not write to the buffer at all if there is not enough space.
...
Add tests for the GetComputerName* functions that show this issue.
Fix an off-by-one error in setting the size when there is not enough space.
Remove the exception handlers for GetComputerNameW,
GetComputerNameExA/W, since testing on XP SP2 shows that access
violations are not caught and these are not present on Win9x, which
does have an exception handler.
2007-02-16 13:13:17 +01:00
Alexandre Julliard
b0ea577ae5
Avoid usage of sizeof in traces that causes warnings on MacOSX.
2006-10-20 12:16:45 +02:00
Michael Stefaniuc
8c38b88068
kernel32: Win64 printf format warning fixes.
2006-10-13 12:08:25 +02:00
Alexandre Julliard
489d87d1e5
kernel32: Renamed the kernel directory to kernel32.
...
Also get rid of the kernel/messages subdirectory.
2006-09-12 13:34:06 +02:00