diff options
author | unknown <bell@sanja.is.com.ua> | 2002-12-28 01:01:05 +0200 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2002-12-28 01:01:05 +0200 |
commit | 3ab0ddc294891f31b65f92fb7af265047db15d52 (patch) | |
tree | 6675c15be87ddec825795b1d2a861d6bc696f109 /sql/nt_servc.cc | |
parent | 7388e9bd5b4604b351386e9d86888d94e4ac4d30 (diff) | |
download | mariadb-git-3ab0ddc294891f31b65f92fb7af265047db15d52.tar.gz |
postreview fix (SCRUM)
fixed layout
sql/filesort.cc:
fixed layout
sql/gstream.cc:
fixed layout
sql/item.cc:
postreview fix
sql/item.h:
postreview fix
sql/item_cmpfunc.cc:
postreview fix
sql/item_cmpfunc.h:
fixed layout
sql/item_func.h:
fixed layout
sql/item_row.h:
fixed layout
sql/item_strfunc.cc:
fixed layout
sql/item_subselect.cc:
postreview fix
sql/item_subselect.h:
postreview fix
sql/nt_servc.cc:
fixed layout
sql/opt_range.cc:
fixed layout
sql/password.c:
fixed layout
sql/spatial.cc:
fixed layout
sql/sql_help.cc:
fixed layout
sql/sql_lex.cc:
fixed layout
sql/sql_olap.cc:
fixed layout
sql/sql_select.cc:
fixed layout
sql/sql_show.cc:
fixed layout
sql/sql_string.cc:
fixed layout
sql/sql_table.cc:
fixed layout
sql/stacktrace.c:
fixed layout
Diffstat (limited to 'sql/nt_servc.cc')
-rw-r--r-- | sql/nt_servc.cc | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/sql/nt_servc.cc b/sql/nt_servc.cc index b917c91ce15..93bae6f444d 100644 --- a/sql/nt_servc.cc +++ b/sql/nt_servc.cc @@ -431,7 +431,7 @@ BOOL NTService::SeekStatus(LPCSTR szInternName, int OperationType) if (ret_error == ERROR_ACCESS_DENIED) { printf("Install/Remove of the Service Denied!\n"); - if(!is_super_user()) + if (!is_super_user()) printf("That operation should be made by an user with Administrator privileges!\n"); } else @@ -530,13 +530,13 @@ BOOL NTService::is_super_user() UINT x; BOOL ret_value=FALSE; - if(!OpenThreadToken(GetCurrentThread(), TOKEN_QUERY, TRUE,&hAccessToken )) + if (!OpenThreadToken(GetCurrentThread(), TOKEN_QUERY, TRUE,&hAccessToken )) { - if(GetLastError() != ERROR_NO_TOKEN) - return FALSE; + if (GetLastError() != ERROR_NO_TOKEN) + return FALSE; - if(!OpenProcessToken(GetCurrentProcess(), TOKEN_QUERY, &hAccessToken)) - return FALSE; + if (!OpenProcessToken(GetCurrentProcess(), TOKEN_QUERY, &hAccessToken)) + return FALSE; } ret_value= GetTokenInformation(hAccessToken,TokenGroups,InfoBuffer, @@ -544,21 +544,21 @@ BOOL NTService::is_super_user() CloseHandle(hAccessToken); - if(!ret_value ) - return FALSE; + if (!ret_value ) + return FALSE; - if(!AllocateAndInitializeSid(&siaNtAuthority, 2, - SECURITY_BUILTIN_DOMAIN_RID, - DOMAIN_ALIAS_RID_ADMINS, - 0, 0, 0, 0, 0, 0, - &psidAdministrators)) - return FALSE; + if (!AllocateAndInitializeSid(&siaNtAuthority, 2, + SECURITY_BUILTIN_DOMAIN_RID, + DOMAIN_ALIAS_RID_ADMINS, + 0, 0, 0, 0, 0, 0, + &psidAdministrators)) + return FALSE; ret_value = FALSE; - for(x=0;x<ptgGroups->GroupCount;x++) + for (x=0;x<ptgGroups->GroupCount;x++) { - if( EqualSid(psidAdministrators, ptgGroups->Groups[x].Sid) ) + if ( EqualSid(psidAdministrators, ptgGroups->Groups[x].Sid) ) { ret_value = TRUE; break; |