summaryrefslogtreecommitdiff
path: root/bin/win32/BINDInstall
diff options
context:
space:
mode:
authorLaMont Jones <lamont@debian.org>2009-11-16 19:27:50 -0600
committerLaMont Jones <lamont@debian.org>2009-11-16 19:27:50 -0600
commitb2492ab7a9f3eb7cc37ac3f1fd6b173979ffd2b0 (patch)
treefc0c9fa247bf1225f696e772dfe76d110ded5463 /bin/win32/BINDInstall
parente3246fedd37d119c2bf6efb28d7492b3a595373a (diff)
downloadbind9-b2492ab7a9f3eb7cc37ac3f1fd6b173979ffd2b0.tar.gz
9.7.0b1
Diffstat (limited to 'bin/win32/BINDInstall')
-rw-r--r--bin/win32/BINDInstall/AccountInfo.cpp26
-rw-r--r--bin/win32/BINDInstall/BINDInstall.cpp6
-rw-r--r--bin/win32/BINDInstall/BINDInstallDlg.cpp6
3 files changed, 19 insertions, 19 deletions
diff --git a/bin/win32/BINDInstall/AccountInfo.cpp b/bin/win32/BINDInstall/AccountInfo.cpp
index 5b28a236..ec3e106f 100644
--- a/bin/win32/BINDInstall/AccountInfo.cpp
+++ b/bin/win32/BINDInstall/AccountInfo.cpp
@@ -1,5 +1,5 @@
/*
- * Portions Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
+ * Portions Copyright (C) 2004, 2007, 2009 Internet Systems Consortium, Inc. ("ISC")
* Portions Copyright (C) 2001, 2002 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: AccountInfo.cpp,v 1.8 2007/06/19 23:47:07 tbox Exp $ */
+/* $Id: AccountInfo.cpp,v 1.10 2009/09/29 23:48:04 tbox Exp $ */
#ifndef UNICODE
#define UNICODE
@@ -108,7 +108,7 @@ DisplayWinError(
int
GetAccountPrivileges(char *name, wchar_t **PrivList, unsigned int *PrivCount,
char **Accounts, unsigned int *totalAccounts,
- int maxAccounts)
+ int maxAccounts)
{
LSA_HANDLE PolicyHandle;
TCHAR AccountName[256]; /* static account name buffer */
@@ -153,8 +153,8 @@ GetAccountPrivileges(char *name, wchar_t **PrivList, unsigned int *PrivCount,
/* Obtain the SID of the user/group. */
if (!GetAccountSid(NULL, AccountName, &pSid))
continue; /* Try the next one */
- /* Get the Privileges allocated to this SID */
- if ((Status = GetPrivilegesOnAccount(PolicyHandle, pSid,
+ /* Get the Privileges allocated to this SID */
+ if ((Status = GetPrivilegesOnAccount(PolicyHandle, pSid,
PrivList, PrivCount)) == STATUS_SUCCESS)
{
iRetVal=RTN_OK;
@@ -183,8 +183,8 @@ CreateServiceAccount(char *name, char *password) {
DWORD dwError = 0;
NET_API_STATUS nStatus;
- unsigned int namelen = strlen(name);
- unsigned int passwdlen = strlen(password);
+ size_t namelen = strlen(name);
+ size_t passwdlen = strlen(password);
wchar_t AccountName[MAX_NAME_LENGTH];
wchar_t AccountPassword[MAX_NAME_LENGTH];
@@ -193,7 +193,7 @@ CreateServiceAccount(char *name, char *password) {
/*
* Set up the USER_INFO_1 structure.
- * USER_PRIV_USER: name is required here when creating an account
+ * USER_PRIV_USER: name is required here when creating an account
* rather than an administrator or a guest.
*/
@@ -239,7 +239,7 @@ AddPrivilegeToAcccount(LPTSTR name, LPWSTR PrivilegeName) {
if (!GetAccountSid(NULL, AccountName, &pSid))
return (RTN_NOACCOUNT);
- err = LsaNtStatusToWinError(SetPrivilegeOnAccount(PolicyHandle,
+ err = LsaNtStatusToWinError(SetPrivilegeOnAccount(PolicyHandle,
pSid, PrivilegeName, TRUE));
LsaClose(PolicyHandle);
@@ -251,7 +251,7 @@ AddPrivilegeToAcccount(LPTSTR name, LPWSTR PrivilegeName) {
void
InitLsaString(PLSA_UNICODE_STRING LsaString, LPWSTR String){
- DWORD StringLength;
+ size_t StringLength;
if (String == NULL) {
LsaString->Buffer = NULL;
@@ -327,7 +327,7 @@ GetAccountSid(LPTSTR SystemName, LPTSTR AccountName, PSID *Sid) {
cbReferencedDomain)) == NULL)
__leave;
}
- else
+ else
__leave;
}
bSuccess = TRUE;
@@ -370,7 +370,7 @@ SetPrivilegeOnAccount(LSA_HANDLE PolicyHandle, PSID AccountSid,
NTSTATUS
GetPrivilegesOnAccount(LSA_HANDLE PolicyHandle, PSID AccountSid,
- wchar_t **PrivList, unsigned int *PrivCount)
+ wchar_t **PrivList, unsigned int *PrivCount)
{
NTSTATUS Status;
LSA_UNICODE_STRING *UserRights;
@@ -395,7 +395,7 @@ GetPrivilegesOnAccount(LSA_HANDLE PolicyHandle, PSID AccountSid,
break;
}
if (found != 0) {
- PrivList[*PrivCount] =
+ PrivList[*PrivCount] =
(wchar_t *)malloc(UserRights[i].MaximumLength);
if (PrivList[*PrivCount] == NULL)
return (RTN_NOMEMORY);
diff --git a/bin/win32/BINDInstall/BINDInstall.cpp b/bin/win32/BINDInstall/BINDInstall.cpp
index f9dc5bca..608f4cf2 100644
--- a/bin/win32/BINDInstall/BINDInstall.cpp
+++ b/bin/win32/BINDInstall/BINDInstall.cpp
@@ -1,5 +1,5 @@
/*
- * Portions Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
+ * Portions Copyright (C) 2004, 2007, 2009 Internet Systems Consortium, Inc. ("ISC")
* Portions Copyright (C) 2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: BINDInstall.cpp,v 1.7 2007/06/19 23:47:07 tbox Exp $ */
+/* $Id: BINDInstall.cpp,v 1.9 2009/09/29 23:48:04 tbox Exp $ */
/*
* Copyright (c) 1999-2000 by Nortel Networks Corporation
@@ -88,7 +88,7 @@ BOOL CBINDInstallApp::InitInstance()
CBINDInstallDlg dlg;
m_pMainWnd = &dlg;
- int nResponse = dlg.DoModal();
+ INT_PTR nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
diff --git a/bin/win32/BINDInstall/BINDInstallDlg.cpp b/bin/win32/BINDInstall/BINDInstallDlg.cpp
index a0976641..7fd50d68 100644
--- a/bin/win32/BINDInstall/BINDInstallDlg.cpp
+++ b/bin/win32/BINDInstall/BINDInstallDlg.cpp
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: BINDInstallDlg.cpp,v 1.44 2009/09/01 06:51:47 marka Exp $ */
+/* $Id: BINDInstallDlg.cpp,v 1.45 2009/09/29 04:37:08 marka Exp $ */
/*
* Copyright (c) 1999-2000 by Nortel Networks Corporation
@@ -238,7 +238,7 @@ BOOL CBINDInstallDlg::OnInitDialog() {
char *fptr = &filename[0];
GetModuleFileName(NULL, filename, MAX_PATH);
char *dptr = strrchr(filename,'\\');
- int index = dptr - fptr;
+ size_t index = dptr - fptr;
strncpy(dirname, filename, index);
dirname[index] = '\0';
CString Dirname(dirname);
@@ -970,7 +970,7 @@ void CBINDInstallDlg::RegisterMessages() {
/* Add the Event-ID message-file name to the subkey. */
if (RegSetValueEx(hKey, "EventMessageFile", 0, REG_EXPAND_SZ,
- (LPBYTE)pszMsgDLL, strlen(pszMsgDLL) + 1) != ERROR_SUCCESS)
+ (LPBYTE)pszMsgDLL, (DWORD)(strlen(pszMsgDLL) + 1)) != ERROR_SUCCESS)
throw(Exception(IDS_ERR_SET_VALUE, GetErrMessage()));
/* Set the supported types flags and addit to the subkey. */