diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-06-08 14:51:53 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-06-08 14:51:53 +0000 |
commit | 48f4b68ffcb66611a4294ed0fd0ac4e49dedb09d (patch) | |
tree | d286e97519019c4a8a6db120231d3df09dbf28a5 /protocols/WhatsApp/src/utils.cpp | |
parent | d0932866332ca111c02d12cefc6373feef1a90bf (diff) |
3 spaces changed to 1 tab
git-svn-id: http://svn.miranda-ng.org/main/trunk@4902 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/utils.cpp')
-rw-r--r-- | protocols/WhatsApp/src/utils.cpp | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/protocols/WhatsApp/src/utils.cpp b/protocols/WhatsApp/src/utils.cpp index 96e8ee18f3..8444cdd6f1 100644 --- a/protocols/WhatsApp/src/utils.cpp +++ b/protocols/WhatsApp/src/utils.cpp @@ -2,22 +2,22 @@ void UnixTimeToFileTime(time_t t, LPFILETIME pft)
{
- // Note that LONGLONG is a 64-bit value
- LONGLONG ll;
+ // Note that LONGLONG is a 64-bit value
+ LONGLONG ll;
- ll = Int32x32To64(t, 10000000) + 116444736000000000;
- pft->dwLowDateTime = (DWORD)ll;
- pft->dwHighDateTime = ll >> 32;
+ ll = Int32x32To64(t, 10000000) + 116444736000000000;
+ pft->dwLowDateTime = (DWORD)ll;
+ pft->dwHighDateTime = ll >> 32;
}
DWORD utils::conversion::to_timestamp(std::string data)
{
DWORD timestamp = NULL;
- /*
+ /*
if (!utils::conversion::from_string<DWORD>(timestamp, data, std::dec)) {
timestamp = static_cast<DWORD>(::time(NULL));
}
- */
+ */
return timestamp;
}
@@ -52,37 +52,37 @@ std::string utils::text::source_get_value(std::string* data, unsigned int argume std::string getLastErrorMsg()
{
- // Retrieve the system error message for the last-error code
+ // Retrieve the system error message for the last-error code
- LPVOID lpMsgBuf;
- DWORD dw = WSAGetLastError();
+ LPVOID lpMsgBuf;
+ DWORD dw = WSAGetLastError();
- FormatMessageA(
- FORMAT_MESSAGE_ALLOCATE_BUFFER |
- FORMAT_MESSAGE_FROM_SYSTEM |
- FORMAT_MESSAGE_IGNORE_INSERTS,
- NULL,
- dw,
- MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
- (LPSTR) &lpMsgBuf,
- 0, NULL );
+ FormatMessageA(
+ FORMAT_MESSAGE_ALLOCATE_BUFFER |
+ FORMAT_MESSAGE_FROM_SYSTEM |
+ FORMAT_MESSAGE_IGNORE_INSERTS,
+ NULL,
+ dw,
+ MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
+ (LPSTR) &lpMsgBuf,
+ 0, NULL );
- // Display the error message and exit the process
- /*
- lpDisplayBuf = (LPVOID)LocalAlloc(LMEM_ZEROINIT,
- (lstrlen((LPCTSTR)lpMsgBuf) + lstrlen((LPCTSTR)lpszFunction) + 40) * sizeof(TCHAR));
- StringCchPrintf((LPTSTR)lpDisplayBuf,
- LocalSize(lpDisplayBuf) / sizeof(TCHAR),
- TEXT("%s"),
- lpMsgBuf);
- */
+ // Display the error message and exit the process
+ /*
+ lpDisplayBuf = (LPVOID)LocalAlloc(LMEM_ZEROINIT,
+ (lstrlen((LPCTSTR)lpMsgBuf) + lstrlen((LPCTSTR)lpszFunction) + 40) * sizeof(TCHAR));
+ StringCchPrintf((LPTSTR)lpDisplayBuf,
+ LocalSize(lpDisplayBuf) / sizeof(TCHAR),
+ TEXT("%s"),
+ lpMsgBuf);
+ */
- std::string ret((LPSTR) lpMsgBuf);
- LocalFree(lpMsgBuf);
- //LocalFree(lpDisplayBuf);
+ std::string ret((LPSTR) lpMsgBuf);
+ LocalFree(lpMsgBuf);
+ //LocalFree(lpDisplayBuf);
- //return std::string((LPCTSTR)lpDisplayBuf);
- return ret;
+ //return std::string((LPCTSTR)lpDisplayBuf);
+ return ret;
}
int utils::debug::log(std::string file_name, std::string text)
|