diff --git a/client/SDL/SDL2/dialogs/sdl_dialogs.cpp b/client/SDL/SDL2/dialogs/sdl_dialogs.cpp index c12ca7753..c3697f6c4 100644 --- a/client/SDL/SDL2/dialogs/sdl_dialogs.cpp +++ b/client/SDL/SDL2/dialogs/sdl_dialogs.cpp @@ -117,7 +117,7 @@ BOOL sdl_authenticate_ex(freerdp* instance, char** username, char** password, ch size_t titlesize = 0; winpr_asprintf(&title, &titlesize, "Credentials required for %s", target); - std::unique_ptr scope(title, free); + CStringPtr scope(title, free); char* u = nullptr; char* d = nullptr; char* p = nullptr; diff --git a/client/SDL/SDL3/dialogs/sdl_dialogs.cpp b/client/SDL/SDL3/dialogs/sdl_dialogs.cpp index bbbbcd5c2..0505778b0 100644 --- a/client/SDL/SDL3/dialogs/sdl_dialogs.cpp +++ b/client/SDL/SDL3/dialogs/sdl_dialogs.cpp @@ -117,7 +117,7 @@ BOOL sdl_authenticate_ex(freerdp* instance, char** username, char** password, ch size_t titlesize = 0; winpr_asprintf(&title, &titlesize, "Credentials required for %s", target); - std::unique_ptr guard(title, free); + CStringPtr guard(title, free); char* u = nullptr; char* d = nullptr; char* p = nullptr;