Fossil

Check-in [39c88cff80]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Robustify error handling.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | testPid
Files: files | file ages | folders
SHA3-256: 39c88cff805de63611075c6688f4fd2080f9e4839fc515f4ac8ec4baf13d72e7
User & Date: mistachkin 2020-06-07 23:07:02.953
Context
2020-06-08
23:11
Fixes and enhancements to SEE integration on Windows. check-in: 57d8a71f42 user: mistachkin tags: trunk
2020-06-07
23:07
Robustify error handling. Closed-Leaf check-in: 39c88cff80 user: mistachkin tags: testPid
23:03
Fixes and enhancements to SEE integration on Windows. check-in: 584ac9ffc4 user: mistachkin tags: testPid
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/db.c.
1195
1196
1197
1198
1199
1200
1201



1202
1203
1204
1205
1206
1207
1208
  const char *zConfig /* The TH1 script to evaluate. */
){
  int rc;
  char *zResult;
  Th_FossilInit(TH_INIT_DEFAULT | TH_INIT_NEED_CONFIG | TH_INIT_NO_REPO);
  rc = Th_Eval(g.interp, 0, zConfig, -1);
  zResult = (char*)Th_GetResult(g.interp, 0);



  if( zResult ){
    DWORD processId = 0;
    LPVOID pAddress = NULL;
    SIZE_T nSize = 0;
    parse_pid_key_value(zResult, &processId, &pAddress, &nSize);
    db_read_saved_encryption_key_from_process(processId, pAddress, nSize);
  }







>
>
>







1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
  const char *zConfig /* The TH1 script to evaluate. */
){
  int rc;
  char *zResult;
  Th_FossilInit(TH_INIT_DEFAULT | TH_INIT_NEED_CONFIG | TH_INIT_NO_REPO);
  rc = Th_Eval(g.interp, 0, zConfig, -1);
  zResult = (char*)Th_GetResult(g.interp, 0);
  if( rc!=TH_OK ){
    fossil_fatal("script for pid key failed: %s", zResult);
  }
  if( zResult ){
    DWORD processId = 0;
    LPVOID pAddress = NULL;
    SIZE_T nSize = 0;
    parse_pid_key_value(zResult, &processId, &pAddress, &nSize);
    db_read_saved_encryption_key_from_process(processId, pAddress, nSize);
  }