mirror of
https://github.com/reactos/reactos.git
synced 2024-09-10 12:54:51 +00:00
[WINE/TEST.H]
Add explicit casts, so that the header can be used from C++ svn path=/trunk/; revision=62465
This commit is contained in:
parent
88a9cdffba
commit
1ff93cb52e
|
@ -254,10 +254,10 @@ static tls_data* get_tls_data(void)
|
||||||
DWORD last_error;
|
DWORD last_error;
|
||||||
|
|
||||||
last_error=GetLastError();
|
last_error=GetLastError();
|
||||||
data=TlsGetValue(tls_index);
|
data=(tls_data*)TlsGetValue(tls_index);
|
||||||
if (!data)
|
if (!data)
|
||||||
{
|
{
|
||||||
data=HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(tls_data));
|
data=(tls_data*)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(tls_data));
|
||||||
data->str_pos = data->strings;
|
data->str_pos = data->strings;
|
||||||
TlsSetValue(tls_index,data);
|
TlsSetValue(tls_index,data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue