mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-15091 : Windows, 64bit: reenable and fix warning C4267 (conversion from 'size_t' to 'type', possible loss of data)
Handle string length as size_t, consistently (almost always:)) Change function prototypes to accept size_t, where in the past ulong or uint were used. change local/member variables to size_t when appropriate. This fix excludes rocksdb, spider,spider, sphinx and connect for now.
This commit is contained in:
@@ -108,7 +108,7 @@ static int get_client_name_from_context(CtxtHandle *ctxt,
|
||||
sspi_ret= ImpersonateSecurityContext(ctxt);
|
||||
if (sspi_ret == SEC_E_OK)
|
||||
{
|
||||
ULONG len= name_len;
|
||||
ULONG len= (ULONG)name_len;
|
||||
if (!GetUserNameEx(NameSamCompatible, name, &len))
|
||||
{
|
||||
log_error(GetLastError(), "GetUserNameEx");
|
||||
|
Reference in New Issue
Block a user