mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-06 10:44:01 +00:00
[host] use correct argument order for calloc
This commit is contained in:
@@ -153,7 +153,7 @@ static bool nvfbc_create(
|
||||
if (!NvFBCInit())
|
||||
return false;
|
||||
|
||||
this = (struct iface *)calloc(sizeof(*this), 1);
|
||||
this = (struct iface *)calloc(1, sizeof(*this));
|
||||
|
||||
this->seperateCursor = option_get_bool("nvfbc", "decoupleCursor");
|
||||
this->getPointerBufferFn = getPointerBufferFn;
|
||||
|
@@ -133,7 +133,7 @@ bool NvFBCToSysCreate(
|
||||
return false;
|
||||
}
|
||||
|
||||
*handle = (NvFBCHandle)calloc(sizeof(**handle), 1);
|
||||
*handle = (NvFBCHandle)calloc(1, sizeof(**handle));
|
||||
(*handle)->nvfbc = static_cast<NvFBCToSys *>(params.pNvFBC);
|
||||
|
||||
if (maxWidth)
|
||||
|
Reference in New Issue
Block a user