diff src/video/win32/SDL_win32events.c @ 4500:eff4e88cc1e8

Added Windows clipboard support
author Sam Lantinga <slouken@libsdl.org>
date Thu, 08 Jul 2010 05:43:34 -0700
parents 9322f7db8603
children 9faebccfefb3
line wrap: on
line diff
--- a/src/video/win32/SDL_win32events.c	Thu Jul 08 00:35:58 2010 -0700
+++ b/src/video/win32/SDL_win32events.c	Thu Jul 08 05:43:34 2010 -0700
@@ -585,17 +585,4 @@
     }
 }
 
-/* Sets an error message based on GetLastError() */
-void
-WIN_SetError(const char *prefix)
-{
-    TCHAR buffer[1024];
-    char *message;
-    FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), 0,
-                  buffer, SDL_arraysize(buffer), NULL);
-    message = WIN_StringToUTF8(buffer);
-    SDL_SetError("%s%s%s", prefix ? prefix : "", prefix ? ": " : "", message);
-    SDL_free(message);
-}
-
 /* vi: set ts=4 sw=4 expandtab: */