vfs: check userland buffers before reading them.
[haiku.git] / src / add-ons / translators / exr / main.cpp
blobe4dd38d40103154d2bed43e81544e815b2952804
1 /*
2 * Copyright 2005-2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
7 #include "EXRTranslator.h"
9 #include "TranslatorWindow.h"
10 #include <Application.h>
11 #include <Catalog.h>
13 #undef B_TRANSLATION_CONTEXT
14 #define B_TRANSLATION_CONTEXT "main"
16 int
17 main(int /*argc*/, char **/*argv*/)
19 BApplication app("application/x-vnd.Haiku-EXRTranslator");
21 status_t result;
22 result = LaunchTranslatorWindow(new EXRTranslator,
23 B_TRANSLATE("EXR Settings"));
24 if (result != B_OK)
25 return 1;
27 app.Run();
28 return 0;