Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: rlz/win/lib/rlz_lib_win.cc

Issue 413763003: clang/win: Fix most -Wwriteable-strings warnings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // A library to manage RLZ information for access-points shared 5 // A library to manage RLZ information for access-points shared
6 // across different client applications. 6 // across different client applications.
7 7
8 #include "rlz/lib/rlz_lib.h" 8 #include "rlz/lib/rlz_lib.h"
9 9
10 #include <windows.h> 10 #include <windows.h>
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 return false; 146 return false;
147 } 147 }
148 148
149 // Add ALL-USERS ALL-ACCESS ACL. 149 // Add ALL-USERS ALL-ACCESS ACL.
150 EXPLICIT_ACCESS ea; 150 EXPLICIT_ACCESS ea;
151 ZeroMemory(&ea, sizeof(EXPLICIT_ACCESS)); 151 ZeroMemory(&ea, sizeof(EXPLICIT_ACCESS));
152 ea.grfAccessPermissions = GENERIC_ALL | KEY_ALL_ACCESS; 152 ea.grfAccessPermissions = GENERIC_ALL | KEY_ALL_ACCESS;
153 ea.grfAccessMode = GRANT_ACCESS; 153 ea.grfAccessMode = GRANT_ACCESS;
154 ea.grfInheritance= SUB_CONTAINERS_AND_OBJECTS_INHERIT; 154 ea.grfInheritance= SUB_CONTAINERS_AND_OBJECTS_INHERIT;
155 ea.Trustee.TrusteeForm = TRUSTEE_IS_NAME; 155 ea.Trustee.TrusteeForm = TRUSTEE_IS_NAME;
156 ea.Trustee.ptstrName = L"Everyone"; 156 ea.Trustee.ptstrName = const_cast<wchar_t*>(L"Everyone");
157 157
158 ACL* new_dacl = NULL; 158 ACL* new_dacl = NULL;
159 result = SetEntriesInAcl(1, &ea, dacl, &new_dacl); 159 result = SetEntriesInAcl(1, &ea, dacl, &new_dacl);
160 if (result != ERROR_SUCCESS) { 160 if (result != ERROR_SUCCESS) {
161 ASSERT_STRING("rlz_lib::CreateMachineState: SetEntriesInAcl failed"); 161 ASSERT_STRING("rlz_lib::CreateMachineState: SetEntriesInAcl failed");
162 return false; 162 return false;
163 } 163 }
164 164
165 BOOL ok = SetSecurityDescriptorDacl(new_sd, TRUE, new_dacl, FALSE); 165 BOOL ok = SetSecurityDescriptorDacl(new_sd, TRUE, new_dacl, FALSE);
166 if (!ok) { 166 if (!ok) {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 return MachineDealCode::Get(dcc, dcc_size); 200 return MachineDealCode::Get(dcc, dcc_size);
201 } 201 }
202 202
203 // Combined functions. 203 // Combined functions.
204 204
205 bool SetMachineDealCodeFromPingResponse(const char* response) { 205 bool SetMachineDealCodeFromPingResponse(const char* response) {
206 return MachineDealCode::SetFromPingResponse(response); 206 return MachineDealCode::SetFromPingResponse(response);
207 } 207 }
208 208
209 } // namespace rlz_lib 209 } // namespace rlz_lib
OLDNEW
« net/proxy/proxy_config_service_win_unittest.cc ('K') | « remoting/base/dispatch_win.h.pump ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698