[Bug 3028] New: FindFirstFile and directory/file names
Wine Bugs
wine-bugs at winehq.org
Wed Jun 1 16:17:32 CDT 2005
http://bugs.winehq.org/show_bug.cgi?id=3028
Summary: FindFirstFile and directory/file names
Product: Wine
Version: 20050419
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: wine-kernel
AssignedTo: wine-bugs at winehq.org
ReportedBy: kelfe at gmx.de
The FindFirstFile shows differences when running under Windows and Wine.
(sry C noob)
--------- snip start ---------
#include<windows.h>
#include<stdio.h>
int main(int argc, char *argv[])
{
HANDLE hFind;
WIN32_FIND_DATA FindData;
hFind = FindFirstFile("foo/*.*", &FindData);
ErrorExit();
FindClose(hFind);
hFind = FindFirstFile("foo/bar/*.*", &FindData);
ErrorExit();
FindClose(hFind);
hFind = FindFirstFile("foo/*.*", &FindData);
ErrorExit();
FindClose(hFind);
return 0;
}
void ErrorExit()
{
LPVOID lpMsgBuf;
DWORD dw = GetLastError();
FormatMessage(
FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM,
NULL,
dw,
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
(LPTSTR) &lpMsgBuf,
0, NULL );
printf("failed with error %d: %s", dw, lpMsgBuf);
LocalFree(lpMsgBuf);
}
--------- snip end ---------
result windows xp:
failed with error 3: Das System kann den angegebenen Pfad nicht finden.
failed with error 3: Das System kann den angegebenen Pfad nicht finden.
failed with error 3: Das System kann den angegebenen Pfad nicht finden.
(path not found error)
result linux:
failed with error 2: File not found
failed with error 3: Path not found
failed with error 2: File not found
The error 2 breaks python OSError exception under wine.
try:
os.listdir(path)
except OSError:
os.mkdir(path)
The missing exception under python breaks the directory creation routine for EVE
Online.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the wine-bugs
mailing list