hopefully fixed build and warnings for bug #142

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16370 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2006-02-12 22:51:55 +00:00
parent 7be5a254fa
commit a8df1e6494
4 changed files with 5 additions and 2 deletions

View File

@ -146,7 +146,7 @@ BackgroundImage::_GetImages(BDirectory& directory, BMessage& container)
char *buffer = new (nothrow) char [info.size];
if (buffer == NULL)
return NULL;
return B_NO_MEMORY;
status = directory.ReadAttr(B_BACKGROUND_INFO, info.type,
0, buffer, (size_t)info.size);

View File

@ -34,7 +34,8 @@ All rights reserved.
#ifndef BACKGROUND_IMAGE_H
#define BACKGROUND_IMAGE_H
#include <Message.h>
#include <Point.h>
#include <SupportDefs.h>
class BDirectory;

View File

@ -14,6 +14,7 @@
#include "ShowImageSettings.h"
#include <Application.h>
#include <FilePanel.h>
class ShowImageApp : public BApplication {

View File

@ -29,6 +29,7 @@
#ifndef _ShowImageSettings_H
#define _ShowImageSettings_H
#include <File.h>
#include <Message.h>
#include <Locker.h>