diff options
Diffstat (limited to 'plugins/HTTPServer')
| -rw-r--r-- | plugins/HTTPServer/src/main.cpp | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/plugins/HTTPServer/src/main.cpp b/plugins/HTTPServer/src/main.cpp index d89e8a4588..24ff38bc1e 100644 --- a/plugins/HTTPServer/src/main.cpp +++ b/plugins/HTTPServer/src/main.cpp @@ -334,7 +334,7 @@ bool bWriteConfigurationFile() {  	HANDLE hFile = CreateFile(szBuf, GENERIC_WRITE, FILE_SHARE_READ, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
  	if (hFile == INVALID_HANDLE_VALUE) {
  		TCHAR temp[200];
 -		mir_sntprintf(temp, SIZEOF(temp), _T("%s%s"), TranslateT("Failed to open or create file "), _T(szConfigFile));
 +		mir_sntprintf(temp, _T("%s%s"), TranslateT("Failed to open or create file "), _T(szConfigFile));
  		MessageBox(NULL, temp , MSG_BOX_TITEL, MB_OK);
  		return false;
  	}
 @@ -342,7 +342,7 @@ bool bWriteConfigurationFile() {  	DWORD dwBytesWriten = 0;
  	if (! WriteFile(hFile, szXmlHeader, sizeof(szXmlHeader) - 1, &dwBytesWriten, NULL)) {
  		TCHAR temp[200];
 -		mir_sntprintf(temp, SIZEOF(temp), _T("%s%s"), TranslateT("Failed to write xml header to file "), _T(szConfigFile));
 +		mir_sntprintf(temp, _T("%s%s"), TranslateT("Failed to write xml header to file "), _T(szConfigFile));
  		MessageBox(NULL, temp, MSG_BOX_TITEL, MB_OK);
  	} else {
  		CLFileShareNode * pclCur = pclFirstNode;
 @@ -356,7 +356,7 @@ bool bWriteConfigurationFile() {  			if (! WriteFile(hFile, szBuf, dwBytesToWrite, &dwBytesWriten, NULL)) {
  				TCHAR temp[200];
 -				mir_sntprintf(temp, SIZEOF(temp), _T("%s%s"), TranslateT("Failed to write xml data to file "), _T(szConfigFile));
 +				mir_sntprintf(temp, _T("%s%s"), TranslateT("Failed to write xml data to file "), _T(szConfigFile));
  				MessageBox(NULL, temp, MSG_BOX_TITEL, MB_OK);
  				break;
  			}
 @@ -365,7 +365,7 @@ bool bWriteConfigurationFile() {  		if (! WriteFile(hFile, szXmlTail, sizeof(szXmlTail) - 1, &dwBytesWriten, NULL)) {
  				TCHAR temp[200];
 -				mir_sntprintf(temp, SIZEOF(temp), _T("%s%s"), TranslateT("Failed to write xml tail to file "), _T(szConfigFile));
 +				mir_sntprintf(temp, _T("%s%s"), TranslateT("Failed to write xml tail to file "), _T(szConfigFile));
  				MessageBox(NULL, temp, MSG_BOX_TITEL, MB_OK);
  		}
  	}
 | 
