ddraw_test: Use const char* for string constants, gcc 4.4 warning

svn path=/trunk/; revision=42906
This commit is contained in:
Gregor Schneider 2009-08-24 11:50:37 +00:00
parent eb65544870
commit b84ac6c703
3 changed files with 3 additions and 3 deletions

View file

@ -2,7 +2,7 @@ HWND CreateBasicWindow (VOID);
LPDIRECTDRAW7 DirectDraw;
BOOL TestCaps (char* dummy, DWORD Caps, HRESULT test1, HRESULT test2)
BOOL TestCaps (const char* dummy, DWORD Caps, HRESULT test1, HRESULT test2)
{
LPDIRECTDRAWSURFACE7 Surface = NULL;
DDSURFACEDESC2 Desc = { 0 };

View file

@ -24,7 +24,7 @@ typedef BOOL (*TESTPROC)(INT*, INT*);
typedef struct tagTEST
{
CHAR* Test;
const CHAR* Test;
TESTPROC Proc;
} TEST, *PTEST;

View file

@ -1,7 +1,7 @@
#define GetCode(X) printf("%s\n", DDErrorString(X));
PCHAR DDErrorString (HRESULT hResult)
const PCHAR DDErrorString (HRESULT hResult)
{
switch (hResult)
{