Changeset 520
- Timestamp:
- 11/02/09 17:07:03 (3 weeks ago)
- Files:
-
- 1 modified
-
WizardsToolkit/trunk/wizard/client.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
WizardsToolkit/trunk/wizard/client.c
r1 r520 45 45 46 46 /* 47 Static declaractions.48 */49 static char50 client_name[MaxTextExtent] = "Wizard",51 client_path[MaxTextExtent] = "";52 53 /*54 47 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 55 48 % % … … 71 64 WizardExport const char *GetClientName(void) 72 65 { 73 return( client_name);66 return(SetClientName((const char *) NULL)); 74 67 } 75 68 … … 94 87 WizardExport const char *GetClientPath(void) 95 88 { 96 return( client_path);89 return(SetClientPath((const char *) NULL)); 97 90 } 98 91 … … 116 109 % A description of each parameter follows: 117 110 % 118 % o client_name: SetClientName() returns the current client name.119 %120 111 % o name: Specifies the new client name. 121 112 % … … 123 114 WizardExport const char *SetClientName(const char *name) 124 115 { 116 static char 117 client_name[MaxTextExtent] = "Wizard"; 118 125 119 if ((name != (char *) NULL) && (*name != '\0')) 126 120 (void) CopyWizardString(client_name,name,MaxTextExtent); … … 149 143 % A description of each parameter follows: 150 144 % 151 % o client_path: Method SetClientPath returns the current client path.152 %153 145 % o path: Specifies the new client path. 154 146 % … … 156 148 WizardExport const char *SetClientPath(const char *path) 157 149 { 150 static char 151 client_path[MaxTextExtent] = ""; 152 158 153 if ((path != (char *) NULL) && (*path != '\0')) 159 154 (void) CopyWizardString(client_path,path,MaxTextExtent);
