I've found that the error appears during the function __KERNEL32_MULTIBYTETOWIDECHAR.I've tried playing around with it a bit changing "str" to "struct*". That makes the error disappear, but then other errors appear about not being able to open INF files and so forth. I don't really know much about these functions and I can't work out what's wrong and how to fix it. And why it occurs only for matching Chinese simplified Host and Source.Regards,Galapo.
Trywpe-core.exe /Saydin77Tip: If (verry mostly on project core executables ) executable provides its sourcecode inside, such information is at its "Properties"->"Version"->"SourceCode"
I'm so used to typing '/BlueLife' to get sourcecodes (at least, that's my excuse ). Sorry to the great Saydin77!
Func __FILE_ANSITOUNICODE($PKAYNAKDOSYA, $PHEDEFDOSYA = "", $CODEPAGE = 0) Local $HEDEFDOSYA If $PHEDEFDOSYA <> "" Then $HEDEFDOSYA = FileOpen($PHEDEFDOSYA, 34) Else If FileExists($PKAYNAKDOSYA&".tmp") Then FileSetAttrib($PKAYNAKDOSYA&".tmp","-R") $HEDEFDOSYA = FileOpen($PKAYNAKDOSYA&".tmp", 34) EndIf Local $KAYNAKDOSYA = FileOpen($PKAYNAKDOSYA) ; Read in lines of text until the EOF is reached While 1 Local $line = FileReadLine($KAYNAKDOSYA) If @error = -1 Then ExitLoop $line = __KERNEL32_MULTIBYTETOWIDECHAR($line, $CODEPAGE) FileWriteLine($HEDEFDOSYA, $line) $line = 0 WEnd FileClose($HEDEFDOSYA) FileClose($KAYNAKDOSYA) If $PHEDEFDOSYA = "" Then FileDelete($PKAYNAKDOSYA) FileMove($PKAYNAKDOSYA&".tmp", $PKAYNAKDOSYA) EndIfEndFunc ;==>__FILE_ANSITOUNICODE