mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 08:15:41 +00:00
fix kernel32 format_msg winetest
svn path=/trunk/; revision=36180
This commit is contained in:
parent
a72e8a4195
commit
b928deeed3
1 changed files with 12 additions and 0 deletions
|
@ -172,6 +172,12 @@ DWORD WINAPI FormatMessageA(
|
||||||
&&((dwFlags & FORMAT_MESSAGE_FROM_SYSTEM)
|
&&((dwFlags & FORMAT_MESSAGE_FROM_SYSTEM)
|
||||||
|| (dwFlags & FORMAT_MESSAGE_FROM_HMODULE))) return 0;
|
|| (dwFlags & FORMAT_MESSAGE_FROM_HMODULE))) return 0;
|
||||||
|
|
||||||
|
if (!lpBuffer)
|
||||||
|
{
|
||||||
|
SetLastError(ERROR_NOT_ENOUGH_MEMORY);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (width && width != FORMAT_MESSAGE_MAX_WIDTH_MASK)
|
if (width && width != FORMAT_MESSAGE_MAX_WIDTH_MASK)
|
||||||
FIXME("line wrapping (%lu) not supported.\n", width);
|
FIXME("line wrapping (%lu) not supported.\n", width);
|
||||||
from = NULL;
|
from = NULL;
|
||||||
|
@ -423,6 +429,12 @@ DWORD WINAPI FormatMessageW(
|
||||||
&&((dwFlags & FORMAT_MESSAGE_FROM_SYSTEM)
|
&&((dwFlags & FORMAT_MESSAGE_FROM_SYSTEM)
|
||||||
|| (dwFlags & FORMAT_MESSAGE_FROM_HMODULE))) return 0;
|
|| (dwFlags & FORMAT_MESSAGE_FROM_HMODULE))) return 0;
|
||||||
|
|
||||||
|
if (!lpBuffer)
|
||||||
|
{
|
||||||
|
SetLastError(ERROR_INVALID_PARAMETER);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (width && width != FORMAT_MESSAGE_MAX_WIDTH_MASK)
|
if (width && width != FORMAT_MESSAGE_MAX_WIDTH_MASK)
|
||||||
FIXME("line wrapping not supported.\n");
|
FIXME("line wrapping not supported.\n");
|
||||||
from = NULL;
|
from = NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue