RE: [OT]Strange problem with VC++ compiler because of goto

This is VC6, it doesn’t warn about it. And about the lack of C++ exception
in the driver, if you encapsulate alloc/dealloc into objects there is no
need for exceptions or goto since destructors will be called upon return.
But granted in pure C there are times were gotos are… no I cannot say it.

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-287001-
xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: jeudi 17 mai 2007 09:31
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] [OT]Strange problem with VC++ compiler because of
goto

>Looks like this is happening due to positioning return 0; Move this to

I’m amazed that there was not “Not all control paths return a value”
error.


Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer