Author: mturk
Date: Sat May 2 15:58:10 2009
New Revision: 770968
URL: http://svn.apache.org/viewvc?rev=770968&view=rev
Log:
Abstract common code to a separate function
Modified:
commons/sandbox/runtime/trunk/src/main/native/os/win32/wusec.c
Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/wusec.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/wusec.c?rev=770968&r1=770967&r2=770968&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/wusec.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/wusec.c Sat May 2 15:58:10 2009
@@ -187,8 +187,7 @@
PSID sid = ACR_HeapMalloc(ss);
if (sid) {
- if (!CreateWellKnownSid(WinWorldSid,
- NULL, sid, &ss)) {
+ if (!CreateWellKnownSid(type, NULL, sid, &ss)) {
int ec = ACR_GET_OS_ERROR();
ACR_HeapFree(sid);
sid = NULL;
|