update for HEAD-2003091401
[reactos.git] / lib / crtdll / sys_stat / stat.c
index a6e9d72..278f842 100644 (file)
@@ -6,12 +6,15 @@
 #include <msvcrt/errno.h>
 
 
+/*
+ * @implemented
+ */
 int _stat(const char* path, struct stat* buffer)
 {
     HANDLE fh;
-    WIN32_FIND_DATA wfd;
+    WIN32_FIND_DATAA wfd;
 
-    fh = FindFirstFile(path, &wfd);
+    fh = FindFirstFileA(path, &wfd);
     if (fh == INVALID_HANDLE_VALUE) {
         __set_errno(ENOFILE);
         return -1;
@@ -42,7 +45,7 @@ int _stat(const char* path, struct stat* buffer)
 
     buffer->st_size = wfd.nFileSizeLow; 
     buffer->st_nlink = 1;
-    if (FindNextFile(fh, &wfd)) {
+    if (FindNextFileA(fh, &wfd)) {
         __set_errno(ENOFILE);
         FindClose(fh);
         return -1;