Hallo,

appended program compiled with mingw sets win.ini as expected running
vmware/win95. Wine however doesn't write the values to disk. The
+debug,+profile log looks like: 

Ret  crtdll.22: __GetMainArgs() retval=425f6ea4 ret=0040101f fs=008f
Call crtdll.345: atexit(00401268) ret=004012e1 fs=008f
fixme:crtdll:CRTDLL_atexit (0x401268), STUB.
Ret  crtdll.345: atexit() retval=00000000 ret=004012e1 fs=008f
Call kernel32.747: WriteProfileSectionA(004011fd "Suilite",004011f0 "mytest=test") 
ret=0040123c fs=008f
trace:profile:PROFILE_Open BO looking for win.initrace:profile:PROFILE_Open BO found 
at 0 win.ini D:\WINE95\WIN.INI
trace:profile:PROFILE_Open (win.ini): already opened (mru=0)
trace:profile:PROFILE_SetString ('Suilite','mytest','test'): 
trace:profile:PROFILE_SetString   creating key
Ret  kernel32.747: WriteProfileSectionA() retval=00000001 ret=0040123c fs=008f
Success
Call crtdll.49: _cexit(402e08dc) ret=004011bb fs=008f
trace:relay:PE_InitDLL CallTo32(entryproc=0x400af210,module=400ab000,type=0,res=0x1)
trace:relay:PE_InitDLL CallTo32(entryproc=0x449e5540,module=449dc000,type=0,res=0x1)
trace:relay:PE_InitDLL CallTo32(entryproc=0x42724900,module=42723000,type=0,res=0x1)
trace:relay:PE_InitDLL CallTo32(entryproc=0x42851030,module=4284d000,type=0,res=0x1)
trace:relay:PE_InitDLL CallTo32(entryproc=0x42867310,module=42860000,type=0,res=0x1)
trace:relay:PE_InitDLL CallTo32(entryproc=0x405c5720,module=405be000,type=0,res=0x1)


Who is responsible for writing the ini-Files?


Bye

Uwe Bonnes                [EMAIL PROTECTED]

Free Software: If you contribute nothing, expect nothing
--


#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <windows.h>


int main(int argc,char *argv[])
{

  printf("%s\n",(WriteProfileSectionA("Suilite","mytest=test\0"))?"Success":"Failure");
  return 0;

}

Reply via email to