"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/main/extractor_ipc_w32.c" between
libextractor-1.10.tar.gz and libextractor-1.11.tar.gz

About: GNU libextractor is a library used to extract meta-data from files of arbitrary type.

extractor_ipc_w32.c  (libextractor-1.10):extractor_ipc_w32.c  (libextractor-1.11)
skipping to change at line 163 skipping to change at line 163
{ {
struct EXTRACTOR_SharedMemory *shm; struct EXTRACTOR_SharedMemory *shm;
const char *tpath = "Local\\"; const char *tpath = "Local\\";
if (NULL == (shm = malloc (sizeof (struct EXTRACTOR_SharedMemory)))) if (NULL == (shm = malloc (sizeof (struct EXTRACTOR_SharedMemory))))
return NULL; return NULL;
snprintf (shm->shm_name, MAX_SHM_NAME, snprintf (shm->shm_name, MAX_SHM_NAME,
"%slibextractor-shm-%u-%u", "%slibextractor-shm-%u-%u",
tpath, getpid (), tpath, getpid (),
(unsigned int) RANDOM ()); (unsigned int) random ());
shm->map = CreateFileMapping (INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, shm->map = CreateFileMapping (INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0,
size, shm->shm_name); size, shm->shm_name);
shm->ptr = MapViewOfFile (shm->map, FILE_MAP_WRITE, 0, 0, size); shm->ptr = MapViewOfFile (shm->map, FILE_MAP_WRITE, 0, 0, size);
if (shm->ptr == NULL) if (shm->ptr == NULL)
{ {
CloseHandle (shm->map); CloseHandle (shm->map);
free (shm); free (shm);
return NULL; return NULL;
} }
shm->shm_size = size; shm->shm_size = size;
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)