[PATCH] ncrypt: Add a trailing linefeed to ERR() messages.
Francois Gouget
fgouget at codeweavers.com
Thu Feb 17 11:50:11 CST 2022
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
dlls/ncrypt/main.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/ncrypt/main.c b/dlls/ncrypt/main.c
index 6b1a87ea785..a9735ff0469 100644
--- a/dlls/ncrypt/main.c
+++ b/dlls/ncrypt/main.c
@@ -319,7 +319,7 @@ static SECURITY_STATUS set_object_property(struct object *object, const WCHAR *n
{
if (!(object->properties = malloc(sizeof(*property))))
{
- ERR("Error allocating memory.");
+ ERR("Error allocating memory.\n");
return NTE_NO_MEMORY;
}
object->num_properties++;
@@ -329,7 +329,7 @@ static SECURITY_STATUS set_object_property(struct object *object, const WCHAR *n
struct object_property *tmp;
if (!(tmp = realloc(object->properties, sizeof(*property) * object->num_properties + 1)))
{
- ERR("Error allocating memory.");
+ ERR("Error allocating memory.\n");
return NTE_NO_MEMORY;
}
object->properties = tmp;
@@ -339,7 +339,7 @@ static SECURITY_STATUS set_object_property(struct object *object, const WCHAR *n
memset(property, 0, sizeof(*property));
if (!(property->key = malloc((lstrlenW(name) + 1) * sizeof(WCHAR))))
{
- ERR("Error allocating memory.");
+ ERR("Error allocating memory.\n");
return NTE_NO_MEMORY;
}
@@ -347,7 +347,7 @@ static SECURITY_STATUS set_object_property(struct object *object, const WCHAR *n
property->value_size = value_size;
if (!(property->value = malloc(value_size)))
{
- ERR("Error allocating memory.");
+ ERR("Error allocating memory.\n");
free(property->key);
property->key = NULL;
return NTE_NO_MEMORY;
--
2.30.2
More information about the wine-devel
mailing list