Mercurial > pidgin.yaz
diff src/win32/IdleTracker/idletrack.c @ 11828:5c50be815a4e
[gaim-migrate @ 14119]
Comment changes. This one was weird. We apparently had two copies of a couple big function calls. One copy per function was completely commented out with /* */ and had // comments describing the arguments. The other copies were just the straight function calls without comments. I moved the comments to the in-use function call, changing // to /* */ and removed the duplication.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Wed, 26 Oct 2005 00:33:21 +0000 |
parents | 89ea4b4a9455 |
children | 099bb2149158 |
line wrap: on
line diff
--- a/src/win32/IdleTracker/idletrack.c Wed Oct 26 00:31:45 2005 +0000 +++ b/src/win32/IdleTracker/idletrack.c Wed Oct 26 00:33:21 2005 +0000 @@ -40,19 +40,12 @@ BOOL fInit; /* Set up the shared memory. */ - /*hMapObject = CreateFileMapping((HANDLE) 0xFFFFFFFF, // use paging file - NULL, // no security attributes - PAGE_READWRITE, // read/write access - 0, // size: high 32-bits - sizeof(DWORD), // size: low 32-bits - "timermem"); // name of map object - */ - hMapObject = CreateFileMapping((HANDLE) 0xFFFFFFFF, - NULL, - PAGE_READWRITE, - 0, - sizeof(DWORD), - "timermem"); + hMapObject = CreateFileMapping((HANDLE) 0xFFFFFFFF, /* use paging file */ + NULL, /* no security attributes */ + PAGE_READWRITE, /* read/write access */ + 0, /* size: high 32-bits */ + sizeof(DWORD), /* size: low 32-bits */ + "timermem"); /* name of map object */ if (hMapObject == NULL) return NULL; @@ -61,17 +54,11 @@ fInit = (GetLastError() != ERROR_ALREADY_EXISTS); /* Get a pointer to the file-mapped shared memory. */ - /*lastTime = (DWORD*) MapViewOfFile(hMapObject, // object to map view of - * FILE_MAP_WRITE, // read/write access - * 0, // high offset: map from - * 0, // low offset: beginning - * 0); // default: map entire file - */ - lastTime = (DWORD*) MapViewOfFile(hMapObject, - FILE_MAP_WRITE, - 0, - 0, - 0); + lastTime = (DWORD*) MapViewOfFile(hMapObject, /* object to map view of */ + FILE_MAP_WRITE, /* read/write access */ + 0, /* high offset: map from */ + 0, /* low offset: beginning */ + 0); /* default: map entire file */ if (lastTime == NULL) return NULL;