From f2902217b38cf2e16e851ae84d61247f8e828180 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Mon, 25 Mar 2019 17:53:14 +0100 Subject: Update the 7z installer stub source to 18.05. Tag #1022 --- other-licenses/7zstub/src/Windows/COM.cpp | 37 ------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 other-licenses/7zstub/src/Windows/COM.cpp (limited to 'other-licenses/7zstub/src/Windows/COM.cpp') diff --git a/other-licenses/7zstub/src/Windows/COM.cpp b/other-licenses/7zstub/src/Windows/COM.cpp deleted file mode 100644 index f7ed066ae..000000000 --- a/other-licenses/7zstub/src/Windows/COM.cpp +++ /dev/null @@ -1,37 +0,0 @@ -// Windows/COM.cpp - -#include "StdAfx.h" - -#include "Windows/COM.h" -#include "Common/StringConvert.h" - -namespace NWindows { -namespace NCOM { - -// CoInitialize (NULL); must be called! - -UString GUIDToStringW(REFGUID guid) -{ - UString string; - const int kStringSize = 48; - StringFromGUID2(guid, string.GetBuffer(kStringSize), kStringSize); - string.ReleaseBuffer(); - return string; -} - -AString GUIDToStringA(REFGUID guid) -{ - return UnicodeStringToMultiByte(GUIDToStringW(guid)); -} - -HRESULT StringToGUIDW(const wchar_t *string, GUID &classID) -{ - return CLSIDFromString((wchar_t *)string, &classID); -} - -HRESULT StringToGUIDA(const char *string, GUID &classID) -{ - return StringToGUIDW(MultiByteToUnicodeString(string), classID); -} - -}} \ No newline at end of file -- cgit v1.2.3