Francois Gouget : ncrypt: Add trailing linefeeds to ERR() messages.

Alexandre Julliard julliard at winehq.org
Fri Feb 18 15:15:00 CST 2022


Module: wine
Branch: master
Commit: b2e4ce14c046bd805cd694e97fc866f484ee604e
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=b2e4ce14c046bd805cd694e97fc866f484ee604e

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Fri Feb 18 15:19:37 2022 +0100

ncrypt: Add trailing linefeeds to ERR() messages.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 8e789573924..4f9a2f357bd 100644
--- a/dlls/ncrypt/main.c
+++ b/dlls/ncrypt/main.c
@@ -190,7 +190,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;
         }
         property = &object->properties[object->num_properties++];
@@ -200,7 +200,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;
@@ -210,7 +210,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;
     }
 
@@ -218,7 +218,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;




More information about the wine-cvs mailing list