mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 14:57:20 +00:00
[c-host] add missing pointer initialization
This commit is contained in:
parent
2c54fd2357
commit
c9d9205bb8
@ -169,6 +169,7 @@ bool os_createThread(const char * name, osThreadFunction function, void * opaque
|
|||||||
{
|
{
|
||||||
*handle = (osThreadHandle *)malloc(sizeof(osThreadHandle));
|
*handle = (osThreadHandle *)malloc(sizeof(osThreadHandle));
|
||||||
(*handle)->name = name;
|
(*handle)->name = name;
|
||||||
|
(*handle)->function = function;
|
||||||
(*handle)->opaque = opaque;
|
(*handle)->opaque = opaque;
|
||||||
(*handle)->handle = CreateThread(NULL, 0, threadWrapper, *handle, 0, &(*handle)->threadID);
|
(*handle)->handle = CreateThread(NULL, 0, threadWrapper, *handle, 0, &(*handle)->threadID);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user