39 0, 0, &mscms_handle_cs,
42 0, 0, { (
DWORD_PTR)(__FILE__
": mscms_handle_cs") }
44 static CRITICAL_SECTION mscms_handle_cs = { &mscms_handle_cs_debug, -1, 0, 0, 0, 0 };
46 static struct profile *profiletable;
49 static unsigned int num_profile_handles;
50 static unsigned int num_transform_handles;
54 void free_handle_tables(
void )
58 num_profile_handles = 0;
61 transformtable =
NULL;
62 num_transform_handles = 0;
74 if (
index > num_profile_handles)
79 return &profiletable[
index];
94 if (
index > num_transform_handles)
99 return &transformtable[
index];
107 static HPROFILE alloc_profile_handle(
void )
111 unsigned int count = 128;
123 count = num_profile_handles * 2;
129 num_profile_handles =
count;
140 if ((
handle = alloc_profile_handle()))
157 if (
index > num_profile_handles)
174 ERR(
"Unable to write color profile\n" );
179 cmsCloseProfile(
profile->cmsprofile );
188 static HTRANSFORM alloc_transform_handle(
void )
192 unsigned int count = 128;
204 count = num_transform_handles * 2;
210 num_transform_handles =
count;
221 if ((
handle = alloc_transform_handle()))
238 if (
index > num_transform_handles)
245 cmsDeleteTransform(
transform->cmstransform );
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
GLuint GLuint GLsizei count
#define INVALID_HANDLE_VALUE
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
namespace GUID const ADDRINFOEXW ADDRINFOEXW struct timeval OVERLAPPED LPLOOKUPSERVICE_COMPLETION_ROUTINE HANDLE * handle
WINE_DEFAULT_DEBUG_CHANNEL(msi)
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
void WINAPI DeleteCriticalSection(PCRITICAL_SECTION)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
LIST_ENTRY ProcessLocksList
#define PROFILE_READWRITE
GLuint GLenum GLenum transform
BOOL WINAPI CloseHandle(IN HANDLE hObject)
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
#define HeapFree(x, y, z)