Commit graph

45 commits

Author SHA1 Message Date
Amine Khaldi
810ed5c85a kernel32: Remove some unused variables (Clang). 2014-10-23 12:14:10 +09:00
Catalin Patulea
a5005ed84a kernel32: Handle win32 hresult in FormatMessage. 2014-10-21 20:00:15 +09:00
Sebastian Lackner
87a78ed878 kernel32: Fix a valgrind warning in format_add_char(). (Valgrind). 2014-06-23 10:12:09 +02:00
Alexandre Julliard
de03abd532 kernel32: FormatMessage precision arguments are integers. 2013-06-24 23:11:02 +02:00
Francois Gouget
49cf27ab2a kernel32: Add line wrapping support to FormatMessage(). 2012-09-24 16:38:15 +02:00
Francois Gouget
5a4f3b478c kernel32: There is no need to zero-fill the FormatMessage() temporary buffer. 2012-09-19 23:55:56 +02:00
Francois Gouget
bca6e18d1b kernel32: Replace the format_message() helper macro with a static function. 2012-09-19 23:55:53 +02:00
Daniel Lehman
b1f04e23bf kernel32: If string arg to FormatMessage is NULL, use "(null)" instead of crashing. 2012-01-09 15:32:50 +01:00
Andrew Talbot
d1136d4aca kernel32: Remove unused file-static variables. 2011-11-16 09:44:48 +01:00
Andrew Nguyen
f2c91f0d3c kernel32: Reject a format string with insertions if no variadic arguments are passed to FormatMessageA/W. 2010-05-03 13:56:53 +02:00
Andrew Nguyen
57636255ef kernel32: Merge the insertion and non-insertion codepaths in the format_message helper together to share common functionality. 2010-04-28 07:39:03 -05:00
Andrew Nguyen
722fd58446 kernel32: Process CRLF escape sequences in normal insert sequence processing path in FormatMessageA/W. 2010-04-28 07:38:53 -05:00
Andrew Nguyen
1d18b890a6 kernel32: Remove a superfluous function call in the format_insert helper. 2010-04-28 07:38:23 -05:00
Andrew Nguyen
5505ae978b kernel32: Handle some escape sequences with FORMAT_MESSAGE_IGNORE_INSERTS in FormatMessageA/W. 2010-04-28 07:37:58 -05:00
Andrew Nguyen
2193b9e887 kernel32: Correct output buffer behavior with empty input strings for FormatMessageA/W. 2010-04-28 07:37:49 -05:00
Andrew Nguyen
f50198f662 kernel32: Improve flag error handling in FormatMessageA/W. 2010-04-28 07:37:39 -05:00
Andrew Nguyen
9df55f06a2 kernel32: Remove leftover preprocessor undef directives in the FormatMessage implementation. 2010-04-28 07:37:20 -05:00
Andrew Nguyen
3cb43a081b kernel32: Fail if a format placeholder is present without a format specifier in FormatMessageA/W. 2010-04-28 07:36:35 -05:00
Andrew Nguyen
12efa6135c kernel32: Rename the load_message helper to reflect its sole handling of Unicode strings. 2010-04-19 15:46:13 +02:00
Andrew Nguyen
43436f64d8 kernel32: Unify the format_message ANSI and Unicode helpers. 2010-04-19 15:46:11 +02:00
Andrew Nguyen
4c657b870f kernel32: Unify the format_insert ANSI and Unicode helpers. 2010-04-19 15:46:08 +02:00
Andrew Nguyen
053d4385c9 kernel32: Transition FormatMessageA to the internal use of Unicode strings. 2010-04-19 15:46:05 +02:00
Andrew Nguyen
f199a83d47 kernel32: Separate format string parsing in FormatMessageA into a new function. 2010-04-19 15:44:34 +02:00
Andrew Nguyen
df83469258 kernel32: Separate format string parsing in FormatMessageW into a new function. 2010-04-19 15:44:27 +02:00
Andrew Nguyen
fcdd0d3040 kernel32: Consistify allocation behavior with FormatMessageA/W. 2010-04-19 15:44:05 +02:00
Andrew Nguyen
ce61b254d0 kernel32: Only check the buffer pointer in FormatMessageA if buffer allocation is requested. 2010-04-19 15:43:25 +02:00
Andrew Nguyen
8b28efaed7 kernel32: Reject an insufficiently sized buffer in FormatMessageA/W. 2010-04-19 15:43:07 +02:00
Andrew Nguyen
c0e7931954 kernel32: Remove superfluous heap reallocation calls in FormatMessageA/W.
The buffer in question is temporary and will be freed on function 
return, so resizing and leaving the enlarged space unused is pointless.
2010-04-19 15:42:42 +02:00
Dan Kegel
1cd395153d kernel32: Fix write buffer overrun in format_insertW. 2009-12-02 13:06:07 +01:00
Alexandre Julliard
0e26e741f7 kernel32: Replicate the MS bug with va_list argument counting in FormatMessage. 2009-10-30 11:03:39 +01:00
Alexandre Julliard
b353401513 kernel32: Fix handling of width and precision arguments and remove assumptions about va_list implementation in FormatMessage. 2009-10-30 11:03:39 +01:00
Alexandre Julliard
100131d4ca kernel32: Propagate the error result from RtlFindMessage in FormatMessage. 2009-10-30 11:03:39 +01:00
Alexandre Julliard
b381958f78 kernel32: Reimplement the formatting of inserts in FormatMessageW. 2009-10-30 11:03:21 +01:00
Alexandre Julliard
3307563a6c kernel32: Reimplement the formatting of inserts in FormatMessageA. 2009-10-30 11:01:51 +01:00
Alexandre Julliard
549116bd68 kernel32/tests: Add some tests for width and precision formatting in FormatMessage. 2009-10-29 13:06:12 +01:00
Alexandre Julliard
b4a9c99abc kernel32: Fix handling of %ws format for Unicode. 2009-06-08 18:13:13 +02:00
Alexandre Julliard
8e6e015eb5 kernel32: Add missing terminator on %wc format conversion. 2009-05-21 16:17:52 +02:00
Hans Leidekker
0f1ecf2819 kernel32: Add support for %ws and %wc format specifiers to FormatMessageA/W. 2009-05-19 11:58:53 +02:00
Michael Stefaniuc
9b2730eb88 kernel32: Remove superfluous pointer casts. 2009-03-11 13:03:31 +01:00
Alexandre Julliard
5f36d0239f kernel32: Convert FormatMessageA/W to use an MS ABI vararg list for x86_64. 2008-12-31 20:59:51 +01:00
Francois Gouget
b3bf746ff9 Straighten out some ellipses. 2008-11-26 12:33:34 +01:00
Andrew Talbot
a9b05bea3f kernel32: Remove unneeded casts. 2007-12-14 12:25:06 +01:00
Hans Leidekker
2c061dbae6 kernel32: Check for NULL output buffer in FormatMessage{A, W}. 2007-09-27 12:47:07 +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
Renamed from dlls/kernel/format_msg.c (Browse further)