~ubuntu-branches/ubuntu/karmic/pcsc-lite/karmic-updates

« back to all changes in this revision

Viewing changes to src/eventhandler.c

  • Committer: Bazaar Package Importer
  • Author(s): Ludovic Rousseau
  • Date: 2006-10-14 00:35:01 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20061014003501-thwa8ydzqnapajn1
Tags: 1.3.2-3
* urgency high to correct a RC bug
* debian/pcscd.init: really commit a local patch that should already be in
  1.3.2-2.  Closes: #392357 "fails to stop; postinst goes into infinite
  loop"

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 * Copyright (C) 2004
7
7
 *  Ludovic Rousseau <ludovic.rousseau@free.fr>
8
8
 *
9
 
 * $Id: eventhandler.c 1827 2006-01-24 14:49:52Z rousseau $
 
9
 * $Id: eventhandler.c 2072 2006-06-06 09:31:07Z rousseau $
10
10
 */
11
11
 
12
12
/**
76
76
        {
77
77
                readerStates[i] = (PREADER_STATE)
78
78
                        SYS_MemoryMap(sizeof(READER_STATE), fd, (i * pageSize));
79
 
                if (readerStates[i] == 0)
 
79
                if (readerStates[i] == MAP_FAILED)
80
80
                {
81
81
                        Log3(PCSC_LOG_CRITICAL, "Cannot memory map public shared file %s: %s",
82
82
                                PCSCLITE_PUBSHM_FILE, strerror(errno));
203
203
void EHStatusHandlerThread(PREADER_CONTEXT rContext)
204
204
{
205
205
        LONG rv;
206
 
        LPCTSTR lpcReader;
 
206
        LPCSTR lpcReader;
207
207
        DWORD dwStatus, dwReaderSharing;
208
208
        DWORD dwCurrentState;
209
209
        int pageSize;