Changeset 39005
- Timestamp:
- 09/19/11 21:40:51 (20 months ago)
- Location:
- lang/c/NetworkUpdater/trunk/Build
- Files:
-
- 2 modified
-
MSW.c (modified) (3 diffs)
-
NetworkUpdater.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/c/NetworkUpdater/trunk/Build/MSW.c
r39004 r39005 600 600 NU_Error NUI_Update(NUI_ThreadData* object) 601 601 { 602 NU_Error error = NU_ NO_ERROR;602 NU_Error error = NU_ERROR_SYSTEM; 603 603 TCHAR myname[500]; 604 604 TCHAR cd[500]; … … 613 613 614 614 if (!object->found) { 615 error = NU_ERROR_ SYSTEM;615 error = NU_ERROR_INVALID_OPERATION; 616 616 goto clean_up; 617 617 } … … 647 647 downloaded_file_contents = NUI_GetFileContents(object->update_file->file_path, &bytes); 648 648 if (!downloaded_file_contents) { 649 error = NU_ERROR_SYSTEM; 649 650 goto clean_up; 650 651 } 651 652 downloaded_hash_value = NUI_CreateHash(object->hash_type, downloaded_file_contents, bytes); 652 653 if (!downloaded_hash_value) { 654 error = NU_ERROR_SYSTEM; 653 655 goto clean_up; 654 656 } 655 657 if (_tcscmp(object->hash_value, downloaded_hash_value) != 0) { 658 error = NU_ERROR_HASH_UNMATCHED; 656 659 goto clean_up; 657 660 } -
lang/c/NetworkUpdater/trunk/Build/NetworkUpdater.h
r39000 r39005 34 34 NU_ERROR_ALREADY_START_UPDATE = 11, 35 35 NU_ERROR_INVALID_ARCHIVE = 12, 36 NU_ERROR_XML = 13 36 NU_ERROR_HASH_UNMATCHED = 13, 37 NU_ERROR_XML = 14, 38 NU_ERROR_INVALID_OPERATION = 15 37 39 } NU_Error; 38 40
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)