wine bug? SetFileTime() error
install wine-1.0 from www.winehq.org OR from Ubuntu repository
SetFileTime() fail on hardy/gutsy, ok on dapper
0009:Call KERNEL32.
0009:trace:
0009: get_handle_fd( handle=0x34 )
0009: *fd* 0x34 -> 30
0009: get_handle_fd() = 0 { type=1, removable=0, access=00120116, options=00000050 }
0009:trace:
0009:Ret KERNEL32.
### SetFileTime_test.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <windows.h>
BOOL SetFileToFixedT
FILETIME ft;
SYSTEMTIME st;
st.wYear=
st.wMonth=
st.wDay=
st.wHour=
st.wMinute=
st.wSecond=
BOOL f;
printf(
SystemTimeToFi
f = SetFileTime(hFile, // sets last-write time for file
(LPFILETIME) NULL, (LPFILETIME) NULL, &ft);
return f;
}
int main(void){
HANDLE hFile;
char * csFileName = "C:\\setfiletot
char WriteTime[255];
hFile = CreateFile( csFileName, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_
if (SetFileToFixed
printf(
} else {
printf(
}
CloseHandle( hFile );
return 0;
}
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu wine Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Alexey Ermoshkin for more information if necessary.