[PATCH 1/6] ncrypt: Fix null pointer.

Santino Mazza mazzasantino1206 at gmail.com
Wed Feb 16 20:16:51 CST 2022


Signed-off-by: Santino Mazza <mazzasantino1206 at gmail.com>
---
 dlls/ncrypt/main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/ncrypt/main.c b/dlls/ncrypt/main.c
index 6b1a87ea785..22e2e9089ef 100644
--- a/dlls/ncrypt/main.c
+++ b/dlls/ncrypt/main.c
@@ -322,6 +322,7 @@ static SECURITY_STATUS set_object_property(struct object *object, const WCHAR *n
             ERR("Error allocating memory.");
             return NTE_NO_MEMORY;
         }
+        property = &object->properties[object->num_properties];
         object->num_properties++;
     }
     else
-- 
2.32.0




More information about the wine-devel mailing list