--- embedaddon/smartmontools/os_win32/wmiquery.cpp 2012/02/21 16:32:16 1.1.1.1 +++ embedaddon/smartmontools/os_win32/wmiquery.cpp 2013/10/14 07:54:04 1.1.1.2 @@ -3,7 +3,7 @@ * * Home page of code is: http://smartmontools.sourceforge.net * - * Copyright (C) 2011 Christian Franke + * Copyright (C) 2011-13 Christian Franke * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -23,7 +23,7 @@ #include -const char * wmiquery_cpp_cvsid = "$Id: wmiquery.cpp,v 1.1.1.1 2012/02/21 16:32:16 misho Exp $" +const char * wmiquery_cpp_cvsid = "$Id: wmiquery.cpp,v 1.1.1.2 2013/10/14 07:54:04 misho Exp $" WMIQUERY_H_CVSID; @@ -67,7 +67,7 @@ std::string wbem_object::get_str(const char * name) /* return s; VARIANT var; VariantInit(&var); - if (m_intf->Get(com_bstr(name), 0L, &var, (CIMTYPE*)0, (long*)0) /* != WBEM_S_NO_ERROR */) + if (m_intf->Get(com_bstr(name), 0L, &var, (CIMTYPE*)0, (LPLONG)0) /* != WBEM_S_NO_ERROR */) return s; if (var.vt == VT_BSTR)