vfs: check userland buffers before reading them.
[haiku.git] / src / add-ons / translators / psd / PSDTranslatorApp.cpp
blob496657f6ac996a7305fd779f0a452b42d9144e3b
1 /*
2 * Copyright 2013, Gerasim Troeglazov, 3dEyes@gmail.com. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
6 #include <Application.h>
8 #include "PSDTranslator.h"
9 #include "TranslatorWindow.h"
11 int
12 main(int argc, char *argv[])
14 BApplication application("application/x-vnd.Haiku-PSDTranslator");
16 status_t result;
17 result = LaunchTranslatorWindow(new PSDTranslator, "PSD Settings",
18 BRect(0, 0, 320, 200));
19 if (result != B_OK)
20 return 1;
22 application.Run();
24 return 0;