39 0, 0, &mscms_handle_cs,
42 0, 0, { (
DWORD_PTR)(__FILE__
": mscms_handle_cs") }
44static CRITICAL_SECTION mscms_handle_cs = { &mscms_handle_cs_debug, -1, 0, 0, 0, 0 };
46static struct profile *profiletable;
49static unsigned int num_profile_handles;
50static unsigned int num_transform_handles;
54void 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];
107static 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 );
188static 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 );
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define INVALID_HANDLE_VALUE
#define HeapFree(x, y, z)
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
GLuint GLuint GLsizei count
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLuint GLenum GLenum transform
#define PROFILE_READWRITE
LIST_ENTRY ProcessLocksList
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
void WINAPI DeleteCriticalSection(PCRITICAL_SECTION)