]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_win.c
add bih.[ch] to MSVC projects
[xonotic/darkplaces.git] / sys_win.c
index 928d842266dbc2f7a4fa13e381418f53c835d10a..d571dd2a4ba9173659d2f818ec8728140c561326 100644 (file)
--- a/sys_win.c
+++ b/sys_win.c
@@ -302,11 +302,11 @@ char *Sys_GetClipboardData (void)
 
                if ((hClipboardData = GetClipboardData (CF_TEXT)) != 0)
                {
-                       if ((cliptext = GlobalLock (hClipboardData)) != 0)
+                       if ((cliptext = (char *)GlobalLock (hClipboardData)) != 0)
                        {
                                size_t allocsize;
                                allocsize = GlobalSize (hClipboardData) + 1;
-                               data = Z_Malloc (allocsize);
+                               data = (char *)Z_Malloc (allocsize);
                                strlcpy (data, cliptext, allocsize);
                                GlobalUnlock (hClipboardData);
                        }
@@ -460,6 +460,8 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin
        return true;
 }
 
+#if 0
+// unused, this file is only used when building windows client and vid_wgl provides WinMain() instead
 int main (int argc, const char* argv[])
 {
        MEMORYSTATUS lpBuffer;
@@ -479,3 +481,5 @@ int main (int argc, const char* argv[])
 
        return true;
 }
+#endif
+