commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r802318 - /commons/sandbox/runtime/trunk/src/main/native/os/win32/group.c
Date Sat, 08 Aug 2009 08:14:02 GMT
Author: mturk
Date: Sat Aug  8 08:14:02 2009
New Revision: 802318

URL: http://svn.apache.org/viewvc?rev=802318&view=rev
Log:
Use 32-bit pointer cast for Net function

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/win32/group.c

Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/group.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/group.c?rev=802318&r1=802317&r2=802318&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/group.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/group.c Sat Aug  8 08:14:02 2009
@@ -336,7 +336,7 @@
     UNREFERENCED_O;
     do {
         res = NetLocalGroupEnum(NULL, 0, (LPBYTE *)&pb, MAX_PREFERRED_LENGTH,
-                                &dwRec, &total, (LPDWORD)&resumehandle );
+                                &dwRec, &total, (PDWORD_PTR)&resumehandle );
         if ((res == ERROR_SUCCESS) || (res == ERROR_MORE_DATA)) {
             ngroups += dwRec;
             NetApiBufferFree(pb);
@@ -349,7 +349,7 @@
     resumehandle = 0;
     do {
         res = NetLocalGroupEnum(NULL, 0, (LPBYTE *)&pb, MAX_PREFERRED_LENGTH,
-                                &dwRec, &total, (LPDWORD)&resumehandle );
+                                &dwRec, &total, (PDWORD_PTR)&resumehandle );
         if ((res == ERROR_SUCCESS) || (res == ERROR_MORE_DATA)) {
             for (n = 0; n < dwRec; n++) {
                 if (j < ngroups) {
@@ -385,7 +385,7 @@
     UNREFERENCED_O;
     do {
         res = NetGroupEnum(NULL, 0, (LPBYTE *)&pb, MAX_PREFERRED_LENGTH,
-                           &dwRec, &total, (LPDWORD)&resumehandle );
+                           &dwRec, &total, (PDWORD_PTR)&resumehandle );
         if ((res == ERROR_SUCCESS) || (res == ERROR_MORE_DATA)) {
             ngroups += dwRec;
             NetApiBufferFree(pb);
@@ -398,7 +398,7 @@
     resumehandle = 0;
     do {
         res = NetGroupEnum(NULL, 0, (LPBYTE *)&pb, MAX_PREFERRED_LENGTH,
-                           &dwRec, &total, (LPDWORD)&resumehandle );
+                           &dwRec, &total, (PDWORD_PTR)&resumehandle );
         if ((res == ERROR_SUCCESS) || (res == ERROR_MORE_DATA)) {
             for (n = 0; n < dwRec; n++) {
                 if (j < ngroups) {
@@ -449,7 +449,7 @@
     do {
         res = NetLocalGroupGetMembers(NULL, gname, 1, (LPBYTE *)&pb,
                                       MAX_PREFERRED_LENGTH,
-                                      &dwRec, &total, (LPDWORD)&resumehandle
);
+                                      &dwRec, &total, (PDWORD_PTR)&resumehandle
);
         if ((res == ERROR_SUCCESS) || (res == ERROR_MORE_DATA)) {
             for (n = 0; n < dwRec; n++) {
                 if (pb[i].lgrmi1_sidusage == SidTypeUser) {
@@ -468,7 +468,7 @@
     do {
         res = NetLocalGroupGetMembers(NULL, gname, 1, (LPBYTE *)&pb,
                                       MAX_PREFERRED_LENGTH,
-                                      &dwRec, &total, (LPDWORD)&resumehandle
);
+                                      &dwRec, &total, (PDWORD_PTR)&resumehandle
);
         if ((res == ERROR_SUCCESS) || (res == ERROR_MORE_DATA)) {
             for (n = 0; n < dwRec; n++) {
                 if (pb[n].lgrmi1_sidusage != SidTypeUser)



Mime
View raw message