[USRMGR]
authorRafal Harabien <rafalh@reactos.org>
Tue, 5 Apr 2011 21:24:25 +0000 (21:24 +0000)
committerRafal Harabien <rafalh@reactos.org>
Tue, 5 Apr 2011 21:24:25 +0000 (21:24 +0000)
Free buffer instead of freeing pointer to buffer

svn path=/trunk/; revision=51261

reactos/dll/cpl/usrmgr/groupprops.c
reactos/dll/cpl/usrmgr/groups.c
reactos/dll/cpl/usrmgr/userprops.c
reactos/dll/cpl/usrmgr/users.c

index ac30a28..d34acd3 100644 (file)
@@ -139,7 +139,7 @@ InitGroupMembersList(HWND hwndDlg,
                                 pUserBuffer[i].usri20_comment);
         }
 
-        NetApiBufferFree(&pUserBuffer);
+        NetApiBufferFree(pUserBuffer);
 
         /* No more data left */
         if (netStatus != ERROR_MORE_DATA)
index 4eebfa4..445d90a 100644 (file)
@@ -77,7 +77,7 @@ UpdateGroupsList(HWND hwndListView)
                                 pBuffer[i].lgrpi1_comment);
         }
 
-        NetApiBufferFree(&pBuffer);
+        NetApiBufferFree(pBuffer);
 
         /* No more data left */
         if (netStatus != ERROR_MORE_DATA)
index c007b18..a9cd031 100644 (file)
@@ -432,7 +432,7 @@ InitUserGroupsList(HWND hwndDlg)
                                 pBuffer[i].lgrpi1_comment);
         }
 
-        NetApiBufferFree(&pBuffer);
+        NetApiBufferFree(pBuffer);
 
         /* No more data left */
         if (netStatus != ERROR_MORE_DATA)
index 04ff45e..174ec2f 100644 (file)
@@ -441,7 +441,7 @@ UpdateUsersList(HWND hwndListView)
                                 pBuffer[i].usri20_comment);
         }
 
-        NetApiBufferFree(&pBuffer);
+        NetApiBufferFree(pBuffer);
 
         /* No more data left */
         if (netStatus != ERROR_MORE_DATA)