--------------------- PatchSet 10840 Date: 2009/08/16 09:10:18 Author: serassio Branch: nt Tag: (none) Log: Ran Indent Members: helpers/external_acl/mswin_ad_group/mswin_check_ad_group.c:1.1.2.9->1.1.2.10 Index: squid/helpers/external_acl/mswin_ad_group/mswin_check_ad_group.c =================================================================== RCS file: /cvsroot/squid-sf//squid/helpers/external_acl/mswin_ad_group/mswin_check_ad_group.c,v retrieving revision 1.1.2.9 retrieving revision 1.1.2.10 diff -u -r1.1.2.9 -r1.1.2.10 --- squid/helpers/external_acl/mswin_ad_group/mswin_check_ad_group.c 9 Aug 2009 16:01:51 -0000 1.1.2.9 +++ squid/helpers/external_acl/mswin_ad_group/mswin_check_ad_group.c 16 Aug 2009 09:10:18 -0000 1.1.2.10 @@ -108,12 +108,12 @@ void CloseCOM(void) { - if (WIN32_COM_initialized == 1) - CoUninitialize( ); + if (WIN32_COM_initialized == 1) + CoUninitialize(); } -HRESULT +HRESULT GetLPBYTEtoOctetString(VARIANT * pVar, LPBYTE * ppByte) { HRESULT hr = E_FAIL; @@ -228,11 +228,11 @@ if (WIN32_COM_initialized == 0) { hr = CoInitialize(NULL); - if (FAILED(hr)) { - debug("My_NameTranslate: cannot initialize COM interface, ERROR: %s\n", Get_WIN32_ErrorMessage(hr)); + if (FAILED(hr)) { + debug("My_NameTranslate: cannot initialize COM interface, ERROR: %s\n", Get_WIN32_ErrorMessage(hr)); /* This is a fatal error */ - exit(1); - } + exit(1); + } WIN32_COM_initialized = 1; } hr = CoCreateInstance(&CLSID_NameTranslate, @@ -243,14 +243,14 @@ if (FAILED(hr)) { debug("My_NameTranslate: cannot create COM instance, ERROR: %s\n", Get_WIN32_ErrorMessage(hr)); /* This is a fatal error */ - exit(1); + exit(1); } hr = pNto->lpVtbl->Init(pNto, ADS_NAME_INITTYPE_GC, L""); if (FAILED(hr)) { debug("My_NameTranslate: cannot initialise NameTranslate API, ERROR: %s\n", Get_WIN32_ErrorMessage(hr)); pNto->lpVtbl->Release(pNto); /* This is a fatal error */ - exit(1); + exit(1); } hr = pNto->lpVtbl->Set(pNto, in_format, name); if (FAILED(hr)) { @@ -339,7 +339,7 @@ } -int +int add_User_Group(wchar_t * Group) { wchar_t **array; @@ -397,7 +397,7 @@ } -HRESULT +HRESULT Recursive_Memberof(IADs * pObj) { VARIANT var; @@ -437,8 +437,8 @@ if (SUCCEEDED(hr)) { hr = Recursive_Memberof(pGrp); pGrp->lpVtbl->Release(pGrp); - } else - debug("Recursive_Memberof: ERROR ADsGetObject for %S failed: %s\n", Group_Path, Get_WIN32_ErrorMessage(hr)); + } else + debug("Recursive_Memberof: ERROR ADsGetObject for %S failed: %s\n", Group_Path, Get_WIN32_ErrorMessage(hr)); safe_free(Group_Path); } VariantClear(&elem);