fix: do not use cur if login winix function if config.use_internal_loggin_mechanism is false

In the login winix function cur pointer will be null if config.use_internal_loggin_mechanism
is false, in such a case those objects are not registered as winix functions
but we have a public api
(the public api should be moved somewhere e.g. make a service layer)
This commit is contained in:
2022-07-27 01:25:49 +02:00
parent 9e6a5b2d37
commit e5ed1d6ae8
2 changed files with 26 additions and 1 deletions

View File

@@ -45,7 +45,14 @@ namespace Winix
namespace Fun
{
/*
* WARNING
* cur will be null if config.use_internal_loggin_mechanism is false
* in such a case those objects are not registered as winix functions
* but we have a public api
* (the public api should be moved somewhere e.g. make a service layer)
*
*/
class Login : public FunctionBase
{
public: