From 2fed063bf167dcb8f900c4a1f11b0a02ae115d16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 16 Jul 2022 01:53:49 +0200 Subject: Rewrite TszFromSz as TsmFromSz. I.e. using std::basic_string instead of TCHAR *. This removes all unmanaged frees. --- c/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'c/common.h') diff --git a/c/common.h b/c/common.h index a6bba23..738368f 100644 --- a/c/common.h +++ b/c/common.h @@ -6,7 +6,7 @@ #include #include -TCHAR *TszFromSz(const char *, int); +std::basic_string TsmFromSz(const char *, int); struct Win32Error : public std::exception { Win32Error(DWORD); -- cgit v1.2.3