From 499db7e3ebf6f43774550418bff0036ef0418db1 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Mon, 25 Jan 2021 17:55:07 +0100 Subject: [PATCH] fixed: session logger didn't have 'cur' and 'locale' pointers set but this is a temporary fix, the session logger will be moved to Session class --- winixd/functions/functions.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/winixd/functions/functions.cpp b/winixd/functions/functions.cpp index f26204e..88ab17d 100644 --- a/winixd/functions/functions.cpp +++ b/winixd/functions/functions.cpp @@ -5,7 +5,7 @@ */ /* - * Copyright (c) 2010-2018, Tomasz Sowa + * Copyright (c) 2010-2021, Tomasz Sowa * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -118,6 +118,13 @@ FunctionBase * Functions::Find(const std::wstring & function_name) if( i == table.end() ) return 0; + FunctionBase * fun = i->second; + + // this is to set 'cur' and 'locale' for slog, but in the future slog will be moved to Session + fun->set_cur(cur); + fun->set_locale(locale); + // + return i->second; }