https://git.reactos.org/?p=reactos.git;a=commitdiff;h=699af9f62ad578e5086ae36e87e5d9bd5b5b30a5

commit 699af9f62ad578e5086ae36e87e5d9bd5b5b30a5
Author:     Pierre Schweitzer <pie...@reactos.org>
AuthorDate: Fri Nov 16 21:36:07 2018 +0100
Commit:     Pierre Schweitzer <pie...@reactos.org>
CommitDate: Fri Nov 16 22:07:08 2018 +0100

    [SETUPAPI] Allocate big enough buffer in CM_Query_Resource_Conflict_List().
    
    CID 1441357
---
 dll/win32/setupapi/cfgmgr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dll/win32/setupapi/cfgmgr.c b/dll/win32/setupapi/cfgmgr.c
index c7087e6d0f..2c56fd1caa 100644
--- a/dll/win32/setupapi/cfgmgr.c
+++ b/dll/win32/setupapi/cfgmgr.c
@@ -6691,7 +6691,7 @@ CM_Query_Resource_Conflict_List(
     if (lpDevInst == NULL)
         return CR_INVALID_DEVNODE;
 
-    pConflictData = MyMalloc(sizeof(PCONFLICT_DATA));
+    pConflictData = MyMalloc(sizeof(CONFLICT_DATA));
     if (pConflictData == NULL)
     {
         ret = CR_OUT_OF_MEMORY;

Reply via email to