Added binary and unicode file i/o support to msvcrt.
[reactos.git] / reactos / lib / crtdll / stdio / tmpnam.c
index a3ce21d..88de936 100644 (file)
@@ -1,15 +1,16 @@
 #include <windows.h>
-#include <crtdll/stdio.h>
-#include <crtdll/string.h>
-
+#include <msvcrt/stdio.h>
+#include <msvcrt/string.h>
 
 
 char * tmpnam(char *s)
 {
        char PathName[MAX_PATH];
        static char static_buf[MAX_PATH];
-       GetTempPath(MAX_PATH,PathName);
+
+    GetTempPathA(MAX_PATH, PathName);
        GetTempFileNameA(PathName,      "ARI",007,static_buf);
        strcpy(s,static_buf);
-       return s;
+
+    return s;
 }